0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-10 02:18:48 +00:00

P1425 小鱼的游泳时间

R58783370
This commit is contained in:
Baoshuo Ren 2021-09-30 13:05:51 +08:00 committed by Baoshuo Ren
parent 224d645916
commit 07a1a83ac8
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -0,0 +1,16 @@
#include <bits/stdc++.h>
using namespace std;
int a, b, c, d, x, y;
int main() {
cin >> a >> b >> c >> d;
x = c - a, y = d - b;
if (y < 0) {
x--;
y += 60;
}
cout << x << ' ' << y << endl;
return 0;
}