当前位置: 代码迷 >> 综合 >> HDU-2033(人见人爱A+B)
  详细解决方案

HDU-2033(人见人爱A+B)

热度:61   发布时间:2023-11-23 12:57:55.0
题目链接:https://vjudge.net/problem/HDU-2033
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>using namespace std;int main()
{int h, m, s;int t;scanf("%d", &t);while(t--){int a1, b1, c1, a2, b2, c2;scanf("%d%d%d%d%d%d", &a1, &b1, &c1, &a2, &b2, &c2);s = (c1 + c2)%60;m = ((b1 + b2) + (c1 + c2)/60)%60;h = ((a1 + a2) + (b1 + b2 + (c1 + c2)/60)/60);printf("%d %d %d\n", h, m, s);}return 0;
}