提交时间:2025-07-07 15:38:10
运行 ID: 328829
#include<iostream> using namespace std; int main(){ int h1,m1,s1,h2,m2,s2,t1,t2; cin>>h1>>m1>>s1>>h2>>m2>>s2; t1=h1*3600+m1*60+s1; t2=h2*3600+m2*60+s2; cout<<(t2-t1)/3600<<" "<<(t2-t1)%3600/60<<" "<<(t2-t1)%60; return 0; }