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>
int main()
{
	int a,b,c,d,e,f;
	int y=0;
	scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&f);
	if(d-a==0)
	{
		y=1;
	}
	if(d-a==1||d-a==-6)
	{
		if(e<b)
		{
			y=1;
		}
		if(e>b)
		{
			y=0;
		}
		if(e==b)
		{
			if(f<=c)
			{
				y=1;
			}
			if(f>c)
			{
				y=0;
			}
		}
	}
	
	if(y==1)
	{
		printf("Y e s\n");
	}
	if(y==0)
	{
		printf("N o\n");
	}
	return 0;
}