/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int setp(int, int)':
/in/foo.cc:35:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   35 |         if (hi[a-1][b] < hi[a][b] && len[a-1][b] == 0|| hi[a + 1][b] < hi[a][b] && len[a + 1][b] == 0|| hi[a][b - 1] < hi[a][b] && len[a][b - 1] == 0|| hi[a][b + 1] < hi[a][b] && len[a][b + 1] == 0)
      |             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
/in/foo.cc:35:129: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   35 |         if (hi[a-1][b] < hi[a][b] && len[a-1][b] == 0|| hi[a + 1][b] < hi[a][b] && len[a + 1][b] == 0|| hi[a][b - 1] < hi[a][b] && len[a][b - 1] == 0|| hi[a][b + 1] < hi[a][b] && len[a][b + 1] == 0)
      |                                                                                                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:35:177: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   35 |         if (hi[a-1][b] < hi[a][b] && len[a-1][b] == 0|| hi[a + 1][b] < hi[a][b] && len[a + 1][b] == 0|| hi[a][b - 1] < hi[a][b] && len[a][b - 1] == 0|| hi[a][b + 1] < hi[a][b] && len[a][b + 1] == 0)
      |                                                                                                                                                         ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥2001ms ≥4.254 MiB
#2 Time Exceeded ≥2001ms ≥3.996 MiB
#3 Time Exceeded ≥2001ms ≥1.836 MiB
#4 Accepted 388ms 1.273 MiB
#5 Time Exceeded ≥2003ms ≥3.195 MiB
#6 Accepted 530ms 1.215 MiB
#7 Accepted 553ms 2.098 MiB
#8 Time Exceeded ≥2002ms ≥2.293 MiB
#9 Time Exceeded ≥2003ms ≥2.184 MiB
#10 Time Exceeded ≥2006ms ≥4.121 MiB

信息

递交者
类型
递交
题目
P1011 清帝之惑之顺治
语言
C++
递交时间
2026-04-12 15:48:36
评测时间
2026-04-14 18:39:47
评测机
分数
30
总耗时
≥15492ms
峰值内存
≥4.254 MiB