mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-23 23:08:47 +00:00
17 lines
243 B
C++
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;
|
|
}
|