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