Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
6108 | weihushan | 小鱼的游泳时间 | C++ | 通过 | 100 | 0 MS | 696 KB | 211 | 2020-08-22 15:51:07 |
#include<iostream> using namespace std; int main() { int a,b,c,d,e,f; cin>>a>>b>>c>>d; if(d>=b) { e=c-a; f=d-b; } else { e=c-a-1; f=d+(60-b); } cout<<e<<" "<<f; return 0; }