记录详情

Wrong Answer

/in/foo.cc: In member function 'int Date::DaysinYear(const Date&)':
/in/foo.cc:69:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   if (date2.month >= 3 && (date2.year % 4 == 0 && date2.year % 100 != 0) || (date2.year % 400 == 0))
       ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 376.0 KiB
#2 Accepted 1ms 344.0 KiB
#3 Accepted 1ms 376.0 KiB
#4 Accepted 1ms 344.0 KiB
#5 Wrong Answer 1ms 380.0 KiB

信息

递交者
类型
递交
题目
P1005 OO1-4 日期类Date
语言
C++
递交时间
2024-05-17 15:21:56
评测时间
2024-05-17 15:21:56
评测机
分数
80
总耗时
7ms
峰值内存
380.0 KiB