Accepted

foo.cc: In function 'int main()':
foo.cc:8:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    8 |                 if(i%4==0&&i%100!=0||i%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:13:26: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   13 |                 if(i%4==0&&i%100!=0||i%400==0)
      |                    ~~~~~~^~~~~~~~~~
foo.cc:21:48: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   21 |                         case 2:tot1+=28+(y%4==0&&y%100!=0||y%400==0);break;
      |                                          ~~~~~~^~~~~~~~~~
foo.cc:28:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   28 |                         case 2:tot2+=28+(y2%4==0&&y2%100!=0||y2%400==0);break;
      |                                          ~~~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 3ms 412.0 KiB
#4 Accepted 3ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1093 5-6 过去了多少天
比赛
2023.8高级班结业模拟测试
语言
C++
递交时间
2023-08-09 09:33:33
评测时间
2023-08-09 09:33:33
评测机
分数
100
总耗时
20ms
峰值内存
412.0 KiB