Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
328829 黄浙峰老师 【C1-5】航班时长 C++ 通过 100 4 MS 240 KB 239 2025-07-07 15:38:10

Tests(2/2):


#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; }


测评信息: