/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void search(int)':
/in/foo.cc:14:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
  if(lbound[now]==-1 && now!=s || ans!=-1 && sum+lbound[now]>ans) return;
     ~~~~~~~~~~~~~~~~^~~~~~~~~
/in/foo.cc: In function 'void lowerbound()':
/in/foo.cc:31:24: warning: 'bestj' may be used uninitialized in this function [-Wmaybe-uninitialized]
 int ok[N],now,i,j,best,bestj;
                        ^~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 316.0 KiB
#2 Wrong Answer 3ms 340.0 KiB
#3 Wrong Answer 3ms 364.0 KiB
#4 Wrong Answer 3ms 256.0 KiB
#5 Wrong Answer 3ms 256.0 KiB
#6 Wrong Answer 5ms 500.0 KiB
#7 Wrong Answer 5ms 460.0 KiB
#8 Wrong Answer 5ms 512.0 KiB
#9 Wrong Answer 9ms 600.0 KiB
#10 Time Exceeded ≥1007ms ≥620.0 KiB

信息

递交者
类型
递交
题目
P1794 文化之旅
语言
C++
递交时间
2017-05-09 15:05:25
评测时间
2017-05-09 15:05:25
评测机
分数
0
总耗时
≥1047ms
峰值内存
≥620.0 KiB