记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:76: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  rep(j,1,18) for(int i=1;i+(1<<j)-1<=n;i++) f[i][j]=max(f[i][j-1],f[i+(1<<j-1)][j-1]);
                                                                           ~^~
/in/foo.cc:20:49: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   printf("%d\n",max(f[l][lg],f[r-(1<<lg)+1][lg]));
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
# 状态 耗时 内存占用
#1 Accepted 1ms 316.0 KiB
#2 Accepted 1ms 208.0 KiB
#3 Accepted 1ms 316.0 KiB
#4 Accepted 1ms 320.0 KiB
#5 Accepted 1ms 204.0 KiB
#6 Accepted 1ms 320.0 KiB
#7 Accepted 1ms 312.0 KiB
#8 Accepted 379ms 17.074 MiB
#9 Accepted 369ms 17.059 MiB
#10 Accepted 391ms 17.062 MiB

信息

递交者
类型
递交
题目
数列区间最大值
题目数据
下载
语言
C++
递交时间
2018-11-02 08:28:18
评测时间
2018-11-02 08:55:13
评测机
分数
100
总耗时
1152ms
峰值内存
17.074 MiB