http://acm.hdu.edu.cn/showproblem.php?pid=2186
1 #include <stdio.h>
2 int calc(int n)
3 {
4 return n/10+(n%10==0?0:1);
5 }
6 int main()
7 {
8 int C;
9 scanf("%d",&C);
10 {
11 while(C--){
12 int num1,num2,num3,n;
13 scanf("%d",&n);
14 num1=n/2;
15 num2=(n-num1)*2/3;
16 num3=n-num1-num2;
17 printf("%d\n",calc(num1)+calc(num2)+calc(num3));
18 }
19 }
20 }