Hello World
Thursday, 10 May 2012
UVa 11547 AUTOMATIC ANSWER Solution
#include<stdio.h>
int main()
{
int t,i,n,ans,a,m;
while(scanf("%d",&t)==1)
{
i=1;
while(i<=t)
{
scanf("%d",&n);
a=n*315+36962;
m=a/10;
ans=m%10;
if(ans<0)
ans=ans/(-1);
printf("%d\n",ans);
i++;
}
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment