CSEC-ASTU Competitive Programming Contest 2021 Problem 96: Automatic Answer
CSEC-ASTU Competitive Programming Contest 2021 Problem 96: Automatic Answer
Input
The input begins with t (1 ≤ t ≤ 100), the number of test cases. Each test case contains an integer n (−1000 ≤ n
≤ 1000) on a line by itself. This n should be substituted into the skill testing question below.
Output
For each test case, output the answer to the following skill testing question on a line by itself:
“Multiply n by 567, then divide the result by 9, then add 7492, then multiply by 235, then divide by 47, then
subtract 498. What is the digit in the tens column?”
2 1
637 3
-120