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 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 4ms 396.0 KiB
#4 Accepted 4ms 412.0 KiB
#5 Accepted 3ms 412.0 KiB

信息

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