/ Vijos /

记录详情

Wrong Answer

/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);
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'bool win(const int*)':
/in/foo.cc:59:67: warning: the address of 'ymd1' will always evaluate as 'true' [-Waddress]
  rec[ ymd1[0] - 1900 ][ ymd1[1] - 1 ][ ymd1[2] - 1 ] = ymd1 ? 2 : 1;
                                                                   ^
/in/foo.cc:60:67: warning: the address of 'ymd2' will always evaluate as 'true' [-Waddress]
  rec[ ymd2[0] - 1900 ][ ymd2[1] - 1 ][ ymd2[2] - 1 ] = ymd2 ? 2 : 1;
                                                                   ^
# 状态 耗时 内存占用
#1 Wrong Answer 4ms 500.0 KiB

信息

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