提交时间:2026-06-06 18:39:21

运行 ID: 443705

#include <iostream> using namespace std; int main() { long long h1,m1,s1,h2,m2,s2; cin>>h1>>m1>>s1; cin>>h2>>m2>>s2; long long t=h1*3600+m1*60+s1+h2*3600+m2*60+s2; t%=86400; long long h=t/3600; t%=3600; long long m=t/60; long long s=t%60; cout<<h<<" "<<m<<" "<<s; return 0; }