Shopping Change solution codechef
For Solution
Click Here!
Chef went buying and acquired objects price XX rupees (1≤X≤1001≤X≤100). Sadly, Chef solely has a single 100100 rupees word.
Since Chef is weak at maths, are you able to assist Chef in calculating what cash he ought to get again after paying 100100 rupees for these objects?
Enter Format
Shopping Change solution codechef
- First line will include TT, the variety of take a look at circumstances. Then the take a look at circumstances observe.
- Every take a look at case consists of a single line containing an integer XX, the full worth of things Chef bought.
Output Format
For every take a look at case, output in a single line the cash Chef has to obtain again.
Constraints
Shopping Change solution codechef
- 1≤T≤1001≤T≤100
- 1≤X≤1001≤X≤100
Pattern Enter 1
3
1
25
100
Pattern Output 1
Shopping Change solution codechef
99
75
0
Rationalization
Take a look at case-1: Since chef paid 100100 rupees for objects price 11 rupee. He ought to get again 9999 rupees.
Take a look at case-2: Since chef paid 100100 rupees for objects price 2525 rupees. He ought to get again 7575 rupees.