提交时间:2020-08-20 13:23:03

运行 ID: 5846

#include <iostream> using namespace std; int main() { int a,b,c,d,e,f,x,y,D_1,H,M; cin >> a >> b >> c >> d; x=60*a+b; y=60*c+d; D_1=y-x; H=D_1/60; M=D_1%60; cout << H << " " << M; return 0; }