Accepted

foo.cc: In function 'int main()':
foo.cc:17:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   17 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:24:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   24 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:31:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   31 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:38:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   38 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:45:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   45 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:52:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   52 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:59:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   59 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:66:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   66 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:73:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   73 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
foo.cc:80:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   80 |         if(y%4==0&&y%100!=0||y%400==0)
      |            ~~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Accepted 2ms 284.0 KiB
#3 Accepted 2ms 284.0 KiB
#4 Accepted 2ms 332.0 KiB
#5 Accepted 2ms 284.0 KiB

信息

递交者
类型
递交
题目
P1030 A1-4 分支结构练习:今年过去了多少天
语言
C++
递交时间
2023-05-14 20:24:25
评测时间
2023-05-14 20:24:25
评测机
分数
100
总耗时
11ms
峰值内存
332.0 KiB