Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
359706 王璟源 【C1-5】航班时长 C++ 通过 100 4 MS 252 KB 222 2025-11-05 19:38:47

Tests(2/2):


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


测评信息: