记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:20:35: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    f[i][j]=max(f[i][j-1],f[i+(1<<j-1)][j-1]),g[i][j]=min(g[i][j-1],g[i+(1<<j-1)][j-1]);
                                  ~^~
/in/foo.cc:20:77: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    f[i][j]=max(f[i][j-1],f[i+(1<<j-1)][j-1]),g[i][j]=min(g[i][j-1],g[i+(1<<j-1)][j-1]);
                                                                            ~^~
/in/foo.cc:19:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(int i=1;i+(1<<j)-1<=n;++i)
   ^~~
/in/foo.cc:21:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
    while(m--)
    ^~~~~
# 状态 耗时 内存占用
#1 Accepted 4ms 6.375 MiB
#2 Accepted 3ms 6.34 MiB
#3 Accepted 3ms 6.34 MiB
#4 Accepted 5ms 6.473 MiB
#5 Accepted 10ms 8.75 MiB
#6 Accepted 18ms 9.223 MiB
#7 Accepted 21ms 15.625 MiB
#8 Accepted 88ms 17.203 MiB
#9 Accepted 148ms 15.625 MiB

信息

递交者
类型
递交
题目
奶牛排队
题目数据
下载
语言
C++
递交时间
2018-09-19 20:33:18
评测时间
2018-09-19 20:33:18
评测机
分数
90
总耗时
304ms
峰值内存
17.203 MiB