#include <stdio.h>
int
main(int argc, char **argv) {
int ncase;
int AH,AM,AS,BH,BM,BS;
int resH, resM, resS;
scanf("%d", &ncase);
while (ncase--) {
scanf("%d%d%d%d%d%d", &AH, &AM, &AS, &BH, &BM, &BS);
resH = AH + BH;
resM = AM + BM;
resS = AS + BS;
if (resS > 59) {
resM++;
resS %= 60;
}
if (resM > 59) {
resH++;
resM %= 60;
}
printf("%d %d %d\n", resH, resM, resS);
}
return 0;
}
HDU2033 人见人爱A+B
最新推荐文章于 2019-10-18 10:24:24 发布