Wrong Answer

foo.cc: In function ‘int main()’:
foo.cc:8:19: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    8 |         if(y%4==0 && y%100!=0 || y%400==0)
      |            ~~~~~~~^~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer Read 请随机输入年份:, expect YES. 3ms 328.0 KiB
#2 Wrong Answer Read 请随机输入年份:, expect YES. 3ms 536.0 KiB
#3 Wrong Answer Read 请随机输入年份:, expect NO. 3ms 324.0 KiB
#4 Wrong Answer Read 请随机输入年份:, expect NO. 2ms 536.0 KiB
#5 Wrong Answer Read 请随机输入年份:, expect YES. 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1001 判断闰年
语言
C++
递交时间
2024-07-05 08:03:28
评测时间
2024-07-05 08:03:28
评测机
分数
0
总耗时
15ms
峰值内存
536.0 KiB