/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int setp(int, int)':
/in/foo.cc:34:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   34 |         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:34:129: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   34 |         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:34:177: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   34 |         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 ≥2002ms ≥4.262 MiB
#2 Time Exceeded ≥2002ms ≥4.086 MiB
#3 Time Exceeded ≥2002ms ≥1.84 MiB
#4 Accepted 439ms 1.285 MiB
#5 Time Exceeded ≥2002ms ≥3.195 MiB
#6 Accepted 660ms 1.219 MiB
#7 Accepted 582ms 2.113 MiB
#8 Time Exceeded ≥2001ms ≥2.297 MiB
#9 Time Exceeded ≥2001ms ≥2.188 MiB
#10 Time Exceeded ≥2006ms ≥4.098 MiB

信息

递交者
类型
递交
题目
P1011 清帝之惑之顺治
语言
C++
递交时间
2026-04-12 15:49:35
评测时间
2026-04-14 18:40:04
评测机
分数
30
总耗时
≥15701ms
峰值内存
≥4.262 MiB