Wrong Answer

foo.cc: In function ‘bool leap(int)’:
foo.cc:5:18: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    5 |         if(n%4==0&&n%100!=0||n%400==0)return 1;
      |            ~~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#2 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#3 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#4 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#5 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#6 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#7 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#8 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#9 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB
#10 Wrong Answer Standard answer longer than user output. 2ms 504.0 KiB

信息

递交者
类型
递交
题目
P2691 一万天以后的日期(函数)
语言
C++
递交时间
2025-07-20 08:13:02
评测时间
2025-07-20 08:13:02
评测机
分数
0
总耗时
26ms
峰值内存
504.0 KiB