/ ep /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:10: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    j=1<<d-1;
         ~^~
/in/foo.cc:22:29: warning: right operand of comma operator has no effect [-Wunused-value]
   d=(int)log2(r[i]-l[i]+1),j<<d;
                            ~^~~
/in/foo.cc:23:59: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
   cout<<max(premax[l[i]][d],premax[r[i]-j+1<l[i]?l[i]:r[i]-j+1][d])<<"\n"; 
                                                       ~~~~^~
# 状态 耗时 内存占用
#1 Accepted 4ms 6.582 MiB
#2 Accepted 5ms 8.574 MiB
#3 Accepted 4ms 8.324 MiB
#4 Accepted 127ms 4.844 MiB
#5 Accepted 128ms 4.719 MiB
#6 Accepted 140ms 6.699 MiB
#7 Accepted 243ms 30.613 MiB
#8 Accepted 251ms 30.121 MiB
#9 Wrong Answer 194ms 30.121 MiB
#10 Accepted 226ms 30.074 MiB

信息

递交者
类型
递交
题目
P1001 序列区间最大值
语言
C++
递交时间
2019-08-24 14:18:47
评测时间
2019-08-24 14:18:47
评测机
分数
90
总耗时
1326ms
峰值内存
30.613 MiB