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(void)
{
	int a,b,c,e,f,g,flag=-1;
	scanf("%d %d %d",&a,&b,&c);
	scanf("%d %d %d",&e,&f,&g);
	if(a>e)
		e+=7;
	if(e-a>1)
		flag=0;
	else if(e-a==1)
	{
		if(f>b)
			flag=0;
		else if(f<b)
			flag=1;
		else if(f==b)
		{
			if(c<g)
			flag=0;
			else
				flag=1;
		}
	}
	else if(e-a==0)
		flag=1;
	if(flag)
		printf("Y e s");
	else
		printf("N o");
	return 0;
}