/ OPS /

记录详情

Wrong Answer

/in/foo.cc: In function 'int rn(int)':
/in/foo.cc:12:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   12 |  if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0) return 1;
      |      ~~~~~~~~~~~^~~~~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   35 |    while (sum >= 365 && rn(yr) == 0 || sum >= 366 && rn(yr) == 1) {
      |           ~~~~~~~~~~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 3ms 416.0 KiB

信息

递交者
类型
递交
题目
P1130 推断日期
语言
C++
递交时间
2024-05-06 19:34:06
评测时间
2024-05-06 19:34:06
评测机
分数
0
总耗时
3ms
峰值内存
416.0 KiB