/ OPS /

记录详情

Accepted

/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:36:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   36 |    while (sum >= 365 && rn(yr) == 0 || sum >= 366 && rn(yr) == 1) {
      |           ~~~~~~~~~~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 336.0 KiB

信息

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