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<math.h>
int main(){
	int a,b,c,t1,t2,t;
	scanf("%d%d%d",&a,&b,&c);
	t1 = a*60*24+b*60+c;
	scanf("%d%d%d",&a,&b,&c);
	t2= a*60*24 +b*60+c;
	t= t2 - t1;
	if((t>=0&&t <= 24*60)||(-t>=6*60*24&&-t<=7*60*24))printf("Y e s\n");
	else printf("N o\n");
	return 0;
}