标签:des style blog io color sp div on log
1 #include <stdio.h> 2 3 int main(){ 4 int T; 5 int number; 6 int i; 7 8 scanf("%d",&T); 9 10 while(T--){ 11 scanf("%d",&number); 12 13 i=1; 14 while(1){ 15 if(number>i){ 16 number-=i; 17 i++; 18 } 19 20 else 21 break; 22 } 23 24 number%=9; 25 26 if(number==0) 27 number=9; 28 29 printf("%d\n",number); 30 } 31 32 return 0; 33 }
标签:des style blog io color sp div on log
原文地址:http://www.cnblogs.com/zqxLonely/p/4085950.html