Accepted

/in/foo.cc: In function 'bool leap(int)':
/in/foo.cc:4:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    4 |         if(year%4==0&&year%100!=0||year%400==0){
      |            ~~~~~~~~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 348.0 KiB
#2 Accepted 1ms 508.0 KiB
#3 Accepted 1ms 348.0 KiB
#4 Accepted 1ms 396.0 KiB
#5 Accepted 1ms 532.0 KiB

信息

递交者
类型
递交
题目
P2346 1.4.17:判断闰年
比赛
2026.11.7中级班练习
语言
C++
递交时间
2026-11-07 14:34:39
评测时间
2026-11-11 12:42:48
评测机
分数
100
总耗时
8ms
峰值内存
532.0 KiB