```cpp
#include <bits/stdc++.h>
using namespace std;
int main (){
int a, b, c, d, x, y;
cin >> a >> b >> c >> d;
if(b <= d){
x = c - a;
y = d - b;
cout << x << ' ' << y;
}else if(b > d){
--c;
d = d + 60;
x = c - a;
y = d - b;
cout << x <<' ' << y;
}
return 0;
}
```
by KingGojianOfYue @ 2023-08-15 20:33:59
@[guoziyang32](/user/985843) 改好了,没输出空格,把b写成d了
by KingGojianOfYue @ 2023-08-15 20:35:29
哦,谢谢我明白了
by Sunlight_Fox @ 2023-08-15 20:50:19