//超麻烦,还容易错的盲做
include[HTML_REMOVED]
using namespace std;
int main()
{
int a,b,c,d,spent_time;
cin>>a>>b>>c>>d;
spent_time=c60+d-a60-b;
if(c<a) spent_time+=1440;
else if(c==a&&b==d) spent_time=1440;
else spent_time=spent_time;
printf(“O JOGO DUROU %d HORA(S) E %d MINUTO(S)”,spent_time/60,spent_time%60);
return 0;
}
//将a与c、b与d的比较转化为spent_time这个量是否大于0,简单易懂还不容易错
include[HTML_REMOVED]
using namespace std;
int main()
{
int a,b,c,d,spent_time;
cin>>a>>b>>c>>d;
spent_time=c60+d-a60-b;
if(spent_time=<0) spent_time+=1440;
printf(“O JOGO DUROU %d HORA(S) E %d MINUTO(S)”,spent_time/60,spent_time%60);
return 0;
}