Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int main()
- {
- int a,b,c,d,e,i,j,k,l;
- cin>>a;
- while(a--)
- {
- cin>>b;
- b=b*567;
- b=b/9;
- b=b+7492;
- b=b*235;
- b=b/47;
- b=b-498;
- b=b/10;
- cout<<abs(b%10)<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement