0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-14 02:58:47 +00:00
OI-codes/Luogu/P1425/P1425.cpp

17 lines
243 B
C++
Raw Normal View History

2021-09-30 05:05:51 +00:00
#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;
}