第2讲2
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int a,b,c,d;
cin >> a >> b >> c >> d;
int start=a*60+b;
int end=c*60+d;
int result=end-start;
if (result<=0) result +=1440;//这是过了一天的情况
printf("O JOGO DUROU %d HORA(S) E %d MINUTO(S)\n",result/60,result%60);
return 0;
}