提交时间:2024-09-01 13:24:10
运行 ID: 50600
#include<bits/stdc++.h> using namespace std; int main() { int h,m,s,k,sum; cin>>h>>m>>s; cin>>k; sum=h*60*60+m*60+s+k; h=sum/3600; sum=sum%3600; m=sum/60; s=sum%60; cout<<h<<m<<s; }