记录详情

Wrong Answer

foo.cc: In function ‘int year(int)’:
foo.cc:5:15: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    5 | return (y%4==0&&y%100!=0||y%400==0)?1:0;
      |         ~~~~~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer Read 367, expect 365. 3ms 556.0 KiB
#2 Wrong Answer Read 61, expect 33. 3ms 536.0 KiB
#3 Wrong Answer Read 34, expect 3. 3ms 492.0 KiB
#4 Wrong Answer Read 732, expect 730. 2ms 324.0 KiB
#5 Wrong Answer Read 1004, expect 1000. 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1058 OO1-4 日期类Date
语言
C++
递交时间
2024-03-29 12:43:00
评测时间
2024-03-29 12:43:00
评测机
分数
0
总耗时
14ms
峰值内存
556.0 KiB