您的位置:首页 > 其它

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

2017-11-20 12:23 441 查看
题目链接: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;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: