提交时间:2020-08-22 10:56:46
运行 ID: 6031
#include <iostream> #include <cstdio> #include <cmath> using namespace std; int main() { int a, b, c, d, e, f; cin >> a >> b >> c >> d ; if ( b > d) { e = c - a - 1; f = d + 60 - b; } else if ( b < d) { e = c - a; f = d - b; } cout << e <<" "<< f; return 0; }