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()
{
	int d,h,m;
	int d2,h2,m2;
	scanf("%d %d %d",&d,&h,&m);
	scanf("%d %d %d",&d2,&h2,&m2);
	if(d!=7)
	{
	if(d2==d+1)
	{
	if(h2<=h&&m2<=m)
	printf("Y e s");
	else
	printf("N o");
    }
   else if(d2==d)
    printf("Y e s");
    else
    printf("N o");
}
if(d==7)
{
	if(d2>1)
	printf("N o");
	else if(h2<=h&&m2<=m)
	printf("Y e s");
	else
	printf("N o");
}
	
}