洛谷题目 P1425
// https://www.luogu.com.cn/problem/P1425#include <iostream>
using namespace std;
int main() {
int a, b, c, d, h, m;
cin >> a >> b >> c >> d;
h = c - a;
m = d - b;
if (m < 0) {
m += 60;
h -= 1;
}
cout << h << " " << m;
return 0;
}
页:
[1]