#include<iostream>
using namespace std;
int main(){
int a,b,c,d;
cin>>a>>b>>c>>d;
int e,f;
e=c-a;
f=d-b;
if(f<0){
f=60-b+d;
e--;}
cout<<e<<" "<<f;
return 0;
}
洛谷【入门1】顺序结构 P1425 小鱼的游泳时间
于 2024-02-28 10:16:47 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)