#include<stdio.h> int main(){ int n; scanf("%d", &n); for(int i = 0; i < n; i++){ int AH, AM, AS; int BH, BM, BS; scanf("%d %d %d", &AH, &AM, &AS); scanf("%d %d %d", &BH, &BM, &BS); int H, M, S; S = (AS + BS) % 60; M = ((AS + BS) / 60 + (AM + BM)) % 60; H = ((AS + BS) / 60 + (AM + BM)) / 60 + (AH + BH); printf("%d %d %d\n", H, M, S); } return 0; }
0.0分
0 人评分