Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
313091 | 123456 | 【C1-5】工作时间 | C++ | 通过 | 100 | 1 MS | 244 KB | 192 | 2025-03-16 17:07:41 |
#include<iostream> using namespace std; int main(){ int a,b,c,d,e,f,t1,t2,t; cin>>a>>b>>c>>d; t1=a*60+b; t2=c*60+d; t=t2-t1; e=t/60; f=t%60; cout<<e<<" "<<f; return 0; }