hdoj:2033

#include <iostream>
#include <string>
using namespace std; int main()
{ int n;
int h, m, s;
int AH, AM, AS, BH, BM, BS;
int flag = ;
cin >> n;
while (n--)
{
cin >> AH >> AM >> AS;
cin >> BH >> BM >> BS; flag = ;
s = AS + BS;
if (s >= )
{
s %= ;
flag = ;
}
m = AM + BM + flag;
if (m >= )
{
m %= ;
flag = ;
}
h = AH + BH + flag;
//if (h >= 24)
//{
// h %= 24;
//flag = 1;
//}
cout << h << " " << m << " " << s << endl;
} }
上一篇:小程序canvas生成二维码图片踩的坑


下一篇:Android之利用正则表达式校验邮箱、手机号、密码、身份证号码等