문제 링크
주어진 수에 주어진 계산을 한 결과의 십의 자리 수를 출력하라.
없음
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define INF 1000000000
int t;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin >> t;
for (int tc = 1; tc <= t; ++tc) {
int n;
cin >> n;
int ans = (((((n * 567) / 9) + 7492) * 235) / 47) - 498;
cout << abs((ans % 100) / 10) << '\n';
}
}