/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:37:14: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
   if(i==(1<<j+1))++j;
             ~^~
/in/foo.cc:41:66: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   for(j=1;j<=n-(1<<i)+1;++j)f[i][j]=s[f[i-1][j]]>s[f[i-1][j+(1<<i-1)]]?f[i-1][j]:f[i-1][j+(1<<i-1)];
                                                                 ~^~
/in/foo.cc:41:96: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   for(j=1;j<=n-(1<<i)+1;++j)f[i][j]=s[f[i-1][j]]>s[f[i-1][j+(1<<i-1)]]?f[i-1][j]:f[i-1][j+(1<<i-1)];
                                                                                               ~^~
# 状态 耗时 内存占用
#1 Accepted 6ms 12.289 MiB
#2 Accepted 38ms 22.406 MiB
#3 Accepted 19ms 39.465 MiB
#4 Accepted 13ms 30.465 MiB
#5 Accepted 60ms 51.953 MiB
#6 Accepted 35ms 40.395 MiB
#7 Accepted 40ms 38.738 MiB
#8 Accepted 135ms 41.531 MiB
#9 Accepted 119ms 51.328 MiB
#10 Accepted 156ms 51.375 MiB

信息

递交者
类型
递交
题目
P1733 超级钢琴
语言
C++
递交时间
2020-07-31 21:37:23
评测时间
2020-07-31 21:37:23
评测机
分数
100
总耗时
625ms
峰值内存
51.953 MiB