- 时间
- @ 2026-03-13 22:49:43
#include<bits/stdc++.h>
using namespace std;
int a,b,c,d;
int main()
{
cin>>a>>b>>c>>d;
if(d-b<0) c-=1,d+=60;
cout<<c-a<<" "<<d-b;
}
2 条评论
-
202603zj08王宇浩 (王宇浩) LV 8 @ 2026-03-16 19:05:30
#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; } -
@ 2026-03-14 17:23:24
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,d;
cin>>a>>b>>c>>d;
int y=a*60+b;
int k=c*60+d;
int cha=k-y;
int shi=cha/60;
int fen=cha%60;
cout<<shi<<" "<<fen;
return 0;
}
- 1
信息
- ID
- 3000
- 难度
- 8
- 分类
- (无)
- 标签
- 递交数
- 12
- 已通过
- 5
- 通过率
- 42%
- 上传者