/ Vijos /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:17:46: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
      maxv[j][i]=max(maxv[j][i-1],maxv[j+(1<<i-1)][i-1]),
                                             ~^~
/in/foo.cc:18:46: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
      minv[j][i]=min(minv[j][i-1],minv[j+(1<<i-1)][i-1]);
                                             ~^~
/in/foo.cc:25:7: warning: unused variable 'ans_min' [-Wunused-variable]
   int ans_min=min(minv[l][lg[r-l+1]],minv[r+1-(1<<lg[r-l+1])][lg[r-l+1]]);
       ^~~~~~~
# 状态 耗时 内存占用
#1 Accepted 3ms 2.457 MiB
#2 Accepted 4ms 2.875 MiB
#3 Accepted 8ms 5.375 MiB
#4 Accepted 14ms 7.199 MiB
#5 Accepted 34ms 14.125 MiB
#6 Runtime Error 50ms 19.695 MiB
#7 Runtime Error 4ms 640.0 KiB
#8 Runtime Error 4ms 2.336 MiB
#9 Runtime Error 3ms 752.0 KiB
#10 Runtime Error 3ms 764.0 KiB

信息

递交者
类型
递交
题目
P1514 天才的记忆
语言
C++
递交时间
2018-04-30 08:48:59
评测时间
2018-04-30 08:48:59
评测机
分数
50
总耗时
130ms
峰值内存
19.695 MiB