mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-18 07:12:01 +00:00
P1425 小鱼的游泳时间
R58783370
This commit is contained in:
parent
224d645916
commit
07a1a83ac8
16
Luogu/problem/P1425/P1425.cpp
Normal file
16
Luogu/problem/P1425/P1425.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user