- 时间
- @ 2026-06-25 15:19:44
#include <bits/stdc++.h>
using namespace std;
int a,b,c,d,e,f,k;
int main()
{
cin>>a>>b>>c>>d;
f=d-b;
if(f<0)
{
f+=60;
k=1;
}
e=c-a-k;
cout<<e<<" "<<f;
return 0;
}
1 条评论
-
202603zj08王宇浩 (王宇浩) LV 8 @ 2026-06-25 21:41:47
#include <bits/stdc++.h> using namespace std; int main ( ) { int a,b,c,d,tb,te,t,e,f; cin>>a>>b>>c>>d; tb=60*a+b; te=60*c+d; t=te-tb; e=t/60; f=t%60; cout<<e<<" "<<f; return 0; }
- 1
信息
- ID
- 3000
- 难度
- 6
- 分类
- (无)
- 标签
- 递交数
- 54
- 已通过
- 14
- 通过率
- 26%
- 上传者