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<stdlib.h>
#include<math.h>
#include<ctype.h>
int main(){
	int a,b,c,x,y,z,flag=0;
	scanf("%d%d%d%d%d%d",&a,&b,&c,&x,&y,&z);
	 if(x-a==1){
			if(b>y) flag=1;
			else if(y==b&&c>=z){
			 flag=1;
			}
	}
	else if(a==x) flag=1;
	else if(a-x==6){
			if(b>y) flag=1;
			else if(y==b&&c>=z){
			 flag=1;
			}
	}
	
	if(flag) printf("Y e s");
	else printf("N o");
}