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: 6ms
Memory: 1092kB
In contest: 1258

#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
int main()
{
	int d,h,m;
	int d1,h1,m1;
	scanf("%d %d %d",&d,&h,&m);
	scanf("%d %d %d",&d1,&h1,&m1);
	if(d==d1)
	{
		printf("Y e s\n");
	}
	else if(d+1==d1&&h>h1)
	{
		printf("Y e s\n");
	}
	else if(d+1==d1&&h==h1&&m>=m1)
	{
		printf("Y e s\n");
	}
	else if(d==7&&d1==1&&h>h1)
	{
		printf("Y e s\n");
	}
	else if(d==7&&d1==1&&h==h1&&m>=m1)
	{
		printf("Y e s\n");
	}
	else
	{
		printf("N o\n");
	}

}