#include <iostream>
using namespace std;
int main(){
int AH,AM,AS,BH,BM,BS;
cin>>AH>>AM>>AS>>BH>>BM>>BS;
AS+=BS;
AM+=BM;
AH+=BH;
if(AS>=60){
int i=AS/60;
AS=AS%60;
AM+=i;
}
if(AM>=60){
int i=AM/60;
AM=AM%60;
AH+=i;
}
cout<<AH<<" "<<AM<<" "<<AS;
}
10、时间相加
于 2024-03-22 23:11:32 首次发布