记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:9:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    9 |  leap1=(year1%400==0||year1%4==0&&year1%100!=0);//2020年不是闰年
      |                       ~~~~~~~~~~^~~~~~~~~~~~~~
foo.c:10:33: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   10 |  leap2=(year2%400==0||year2%4==0&&year2%100!=0);
      |                       ~~~~~~~~~~^~~~~~~~~~~~~~
foo.c:38:32: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   38 |     if(year1%400==0||year1%4==0&&year1%100!=0)//假设我不知道的情况下
      |                      ~~~~~~~~~~^~~~~~~~~~~~~~
foo.c:53:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   53 |      if(i%400==0||i%4==0&&i%100!=0)
      |                   ~~~~~~^~~~~~~~~~
foo.c:5:38: warning: unused variable 'sum' [-Wunused-variable]
    5 |  int year1,month1,day1,i,leap1,leap2,sum=0;
      |                                      ^~~
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    7 |  scanf("%d%d%d",&year1,&month1,&day1);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%d%d%d",&year2,&month2,&day2);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 6351, expect 6717. 2ms 256.0 KiB
#2 Wrong Answer Read 18049, expect 18415. 1ms 256.0 KiB
#3 Wrong Answer Read 42887, expect 43252. 3ms 256.0 KiB
#4 Wrong Answer Read 79411, expect 79776. 2ms 256.0 KiB
#5 Wrong Answer Read 4749, expect 5114. 2ms 256.0 KiB

信息

递交者
类型
递交
题目
P1093 5-6 过去了多少天
语言
C
递交时间
2021-12-28 09:39:48
评测时间
2021-12-28 09:39:48
评测机
分数
0
总耗时
11ms
峰值内存
256.0 KiB