标签:des style blog io color sp 数据 div on
1 #include <stdio.h> 2 3 4 int main(){ 5 int n; 6 int a1; 7 int b1; 8 int c1; 9 int a2; 10 int b2; 11 int c2; 12 int a3; 13 int b3; 14 int c3; 15 16 scanf("%d",&n); 17 18 while(n--){ 19 scanf("%d",&c1); 20 scanf("%d",&b1); 21 scanf("%d",&a1); 22 scanf("%d",&c2); 23 scanf("%d",&b2); 24 scanf("%d",&a2); 25 26 a3=(a1+a2)%60; 27 b1+=(a1+a2)/60; 28 29 b3=(b1+b2)%60; 30 c1+=(b1+b2)/60; 31 32 c3=c1+c2; 33 34 printf("%d %d %d\n",c3,b3,a3); 35 36 } 37 38 return 0; 39 }
标签:des style blog io color sp 数据 div on
原文地址:http://www.cnblogs.com/zqxLonely/p/4053999.html