Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
354852 | 胡珂 | 【C1-5】航班时长 | C++ | 通过 | 100 | 2 MS | 256 KB | 284 | 2025-10-06 20:58:53 |
#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; }