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; }
相关文章推荐
- HDU 2033 人见人爱A+B
- hdu-2033-人见人爱A+B
- hdu_2033_人见人爱A+B
- HDU--2033人见人爱A+B
- HDU-2033 人见人爱A+B
- HDU_2033 人见人爱A+B
- HDU 2033 - 人见人爱 A + B
- 人见人爱A+B HDU 2033
- hdu 2033 人见人爱A+B (java)
- HDU2033 人见人爱A+B 分类: ACM 2015-06-21 23:05 13人阅读 评论(0) 收藏
- HDU 2033 2034 2035人见人爱系列之A+B A-B A^B
- HDU 2033 人见人爱A+B
- hdu_2033_人见人爱A+B_解题报告
- HDU 2033 人见人爱A+B(水~)
- hdu 2033 人见人爱A+B
- [2033]人见人爱A+B HDU(水题)
- HDU 2033 人见人爱A+B
- hdu 2033 人见人爱A+B
- HDU 2033 人见人爱A+B
- HDU-2033 人见人爱A+B (时间进制)