#include<iostream>
#include<math.h>
#include<cstdio>
using namespace std;
int main()
{
int a,b,c,d,e,f;
cin>>a>>b>>c>>d;
if (d>=b)
{
e=c-a;
f=d-b;
cout<<e<<" "<<f;
}
else if (d<b)
{
e=c-a-1;
f=d+60-b;
cout<<e<<" "<<f;
}
return 0;
}
【洛谷P1425 小鱼的游泳时间--100分】
最新推荐文章于 2023-10-09 08:00:00 发布