UVA 11547 :https://uva.onlinejudge.org/external/115/11547.pdf
#include<iostream>
using namespace std;
int t = 0,n=0;
int main(void) {
cin >> t;
while (t--)
{
cin >> n;
n = n* 315+36962;
cout << abs(n/10%10) << endl;
}
system("PAUSE");
}
#include<iostream>
using namespace std;
int t = 0,n=0;
int main(void) {
cin >> t;
while (t--)
{
cin >> n;
n = n* 315+36962;
cout << abs(n/10%10) << endl;
}
system("PAUSE");
}
留言
張貼留言