提交时间:2025-10-06 17:01:59

运行 ID: 354791

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