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() 
{   
	double x1,h1,m1,x2,h2,m2;
	scanf("%lf %lf %lf",&x1,&h1,&m1);
	scanf("%lf %lf %lf",&x2,&h2,&m2);
	h1=h1+m1/60;
	h2=h2+m2/60;
	if(x1==x2)
		printf("Y e s\n");
	else if(x2-x1==1)
	{
		if(h1>=h2)
			printf("Y e s\n");
		else 
			printf("N o\n");
	}
	else if(x1==7&&x2==1)
	{
		if(h1>=h2)
			printf("Y e s\n");
		else 
			printf("N o\n");
	}
	else 
			printf("N o\n");

	return 0;
}