Start: Jan, 08, 2019 19:01:00
2018年秋季学期程序设计基础(C语言)期末考试
End: Jan, 08, 2019 21:46:00
Time elapsed:
Time remaining:

Problem_ID: F
Result: Accepted
Time: 7ms
Memory: 1092kB
In contest: 1258

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main()
{
	int a,b,c,aa,bb,cc;
	long long int sum=0;
	scanf("%d%d%d%d%d%d",&a,&b,&c,&aa,&bb,&cc);
	sum=-a*24*60-b*60-c+aa*24*60+bb*60+cc;
//	printf("%d\n",sum);
	if(sum<0)
	{
		aa+=7;
	}
	sum=-a*24*60-b*60-c+aa*24*60+bb*60+cc;
	if(sum<=24*60)printf("Y e s\n");
	else printf("N o\n");


}