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

#include<stdio.h>

int main(){
	int a1,b1,c1,a2,b2,c2,m,t;
	scanf("%d %d %d %d %d %d",&a1,&b1,&c1,&a2,&b2,&c2);
	if(a2 < a1) a2 = a2+7;
	if( a2 - a1 > 1){
		m = 25;
	}else if( a2 - a1 ==1){
		if(b2 > b1) m = 25;
		else if( b2 == b1){
			if( c2 > c1) m =25;
			else m = 23;
		}else if( b2 < b1){
			m = 23;
		}
	}else if(a2 - a1 == 0){
		m = 23; 
	}
	if( m > 24){
		printf("N o\n");
	}else printf("Y e s\n");
	return 0;
}