0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-09 01:38:48 +00:00
OI-codes/Luogu/P1425/P1425.cpp

17 lines
243 B
C++

#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;
}