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