Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- long long int k,n,i;
- scanf("%lld",&k);
- for(i=1;i<=k;i++){
- scanf("%lld",&n);
- n=n*567;
- n=n/9;
- n=n+7492;
- n=n*235;
- n=n/47;
- n=n-498;
- n=n/10;
- n=n%10;
- if(n<0)
- n=-n;
- printf("%lld\n",n);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement