提交时间:2020-08-22 09:57:59
运行 ID: 5987
#include <iostream> using namespace std; int main() { int a , b , c , d , hour = 0 , minute = 0; cin >> a >> b >> c >> d; if(d >= b) { hour = c - a; minute = d - b; } else if(d < b) { hour = c - a - 1; minute = b - d; } cout << hour << " " << minute << endl; return 0; }