记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:19:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    f[i][j]=max(f[i][j-1],f[i+(1<<j-1)][j-1]);
                                  ~^~
/in/foo.cc:18:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i=1;i+(1<<j)-1<=n;++i)
   ^~~
/in/foo.cc:20:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    while(m--)
    ^~~~~
# 状态 耗时 内存占用
#1 Accepted 5ms 4.359 MiB
#2 Accepted 5ms 4.375 MiB
#3 Accepted 4ms 4.258 MiB
#4 Accepted 4ms 4.25 MiB
#5 Accepted 5ms 4.375 MiB
#6 Accepted 2ms 4.352 MiB
#7 Accepted 4ms 4.367 MiB
#8 Accepted 786ms 15.906 MiB
#9 Accepted 841ms 15.109 MiB
#10 Accepted 797ms 14.23 MiB

信息

递交者
类型
递交
题目
数列区间最大值
题目数据
下载
语言
C++
递交时间
2018-09-12 21:59:14
评测时间
2018-09-12 21:59:15
评测机
分数
100
总耗时
2458ms
峰值内存
15.906 MiB