#include <bits/stdc++.h> using namespace std; int main() { int a,b,c,d,s,t,x; cin>>a>>b>>c>>d; s=a60+b; t=c60+d; x=t-s; cout<<x/60<<' '<<x%60; return 0; }
使用您的 众创得优编程 通用账户