11547 - Automatic Answer |
Problem link:
Solution :
#include<bits/stdc++.h>
using namespace std;
int main( )
{
int n,t,res;
cin>>t ;
for (int i=1;i<=t;i++)
{
cin>>n;
res=((((((n*567)/9)+7492)*235)/47)-498);
cout<<abs((res/10)%10)<<endl;
}
return 0;
}
No comments:
Post a Comment