Advertisement
p32929

UVA - 11547

Jun 15th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1.  
  2. #include<stdio.h>
  3. #include<math.h>
  4. int main()
  5. {
  6.     int t,n,i, result;
  7.     scanf("%d", &t);
  8.     for(i=1; i<=t; i++)
  9.     {
  10.         scanf("%d", &n);
  11.         result= ((((((n*567)/9)+7492)*235)/47)-498);
  12.         printf("%d\n", abs(result/10)%10);
  13.     }
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement