80分!求助 感谢
查看原帖
80分!求助 感谢
803133
CYF123469楼主2022/10/1 10:48
#include <iostream>
using namespace std ;
int main()
{
	int a,b,c,d ;
	cin>>a>>b>>c>>d ;
	int  e,f ;
	e=c-a-1 ;
	f=(60-b)+d ;
	if(f==60) 
	{
		f=0 ;
		e++ ;
	} 
	cout<<e<<" "<<f ;
	return 0 ;
}
2022/10/1 10:48
加载中...