?? 2033 人見人愛a+b.cpp
字號(hào):
/*
2033 人見人愛A+B
Time Limit : 1000 ms Memory Limit : 32768 K Output Limit : 256 K
GUN C++
*/
#include <iostream>
using namespace std;
const int Max=1000;
int main()
{
int t,i;
int ah,am,as,bh,bm,bs;
int h,m,s;
cin>>t;
while(t--)
{
cin>>ah>>am>>as>>bh>>bm>>bs;
h=m=s=0;
s=as+bs;
if(s>=60)
{ m=1;s%=60;}
m+=am+bm;
if(m>=60)
{ h=1;m%=60;}
h+=ah+bh;
cout<<h<<' '<<m<<' '<<s<<endl;
}
return 0;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -