标签:des style http color java os io strong
6 1 2 3 4 5 10
1 1 2 1 2 4
#include<iostream>
using namespace std;
int main()
{
int t,n;
cin>>t;
while(t--)
{
cin>>n;
for(int i=1;i<n;i++)
n-=i;
n=n%9;
if(n)
cout<<n<<endl;
else
cout<<9<<endl;
}
return 0;
}
hdu 1597 find the nth digit,布布扣,bubuko.com
标签:des style http color java os io strong
原文地址:http://blog.csdn.net/chaoyueziji123/article/details/38554043