解题思路:
注意事项:
参考代码:
#include<iostream> using namespace std; int main(){ int ah,am,as,bh,bm,bs,ch,cm,cs,i,n; cin>>n; for(i=1;i<=n;i++){ cin>>ah>>am>>as>>bh>>bm>>bs; cs=as+bs; cm=am+bm; ch=ah+bh; cm+=cs/60; cs%=60; ch+=cm/60; cm%=60; cout<<ch<<" "<<cm<<" "<<cs<<endl; } }
0.0分
0 人评分