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 a,b,c,x,y,z;
  double q,w,e;
  scanf("%lf %lf %lf",&a,&b,&c);
  scanf("%lf %lf %lf",&x,&y,&z);
  q = (x - a) * 24;
  w = y - b;
  e = (z - c) / 60;
  if (a <= x) {
  if (q + w + e > 24) {
   printf("N o");
  } else {
    printf("Y e s");
  }
} else {
  if (7*24+q + w+e > 24) {
    printf("N o");
  } else {
    printf("Y e s");
}
}
  return 0;
}