/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool leap(int)':
/in/foo.cc:22:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  return ( y % 400 == 0 or y % 4 == 0 and y % 100 != 0 );
                           ~~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc: In function 'bool beyond(const int*)':
/in/foo.cc:45:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    or ymd[0] == 2001 and ymd[1] >  11
       ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/in/foo.cc:46:39: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
    or ymd[0] == 2001 and ymd[1] == 11 and ymd[2] > 4);
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 500.0 KiB

信息

递交者
类型
递交
题目
P1004 伊甸园日历游戏
语言
C++
递交时间
2018-06-05 03:27:15
评测时间
2018-06-05 03:27:15
评测机
分数
100
总耗时
3ms
峰值内存
500.0 KiB