/ 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:40: warning: 'j' may be used uninitialized in this function [-Wmaybe-uninitialized]
   cout<<max(premax[l[i]][d],premax[r[i]-j+1<1?l[i]+1:r[i]-j+1][d])<<"\n"; 
                                    ~~~~^~
# 状态 耗时 内存占用
#1 Accepted 3ms 728.0 KiB
#2 Accepted 3ms 732.0 KiB
#3 Accepted 3ms 852.0 KiB
#4 Accepted 133ms 4.605 MiB
#5 Accepted 134ms 4.562 MiB
#6 Accepted 126ms 4.609 MiB
#7 Wrong Answer 189ms 27.789 MiB
#8 Wrong Answer 197ms 27.789 MiB
#9 Wrong Answer 198ms 27.793 MiB
#10 Wrong Answer 172ms 27.793 MiB

信息

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