Competitive Programming
Try To Help To Generate & Improve The Idea Of Competitive Programming
Friday, December 8, 2017
11547 - Automatic Answer Uva Problem Solution
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t,n,i;
cin>>t;
while(t--){
scanf("%d",&n);
n=n*567;
n=n/9;
n+=7492;
n*=235;
n/=47;
n=n-498;
n/=10;
n%=10;
n=abs(n);
printf("%d\n",n);
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment