/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:29:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  for (int i=1;i<=n;i++) f[1<<i-1][i]=0;
                              ~^~
/in/foo.cc:34:19: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
      if (!(i&(1<<k-1)))
                  ~^~
/in/foo.cc:35:16: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
       f[i|(1<<k-1)][k]=min(f[i|(1<<k-1)][k],f[i][j]+a[j][k]);
               ~^~
/in/foo.cc:35:37: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
       f[i|(1<<k-1)][k]=min(f[i|(1<<k-1)][k],f[i][j]+a[j][k]);
                                    ~^~
# 状态 耗时 内存占用
#1 Accepted 7ms 8.75 MiB
#2 Accepted 6ms 8.855 MiB
#3 Accepted 3ms 8.75 MiB
#4 Accepted 6ms 8.848 MiB
#5 Accepted 4ms 8.75 MiB
#6 Accepted 5ms 8.852 MiB
#7 Accepted 6ms 8.859 MiB
#8 Accepted 5ms 8.875 MiB
#9 Accepted 6ms 8.875 MiB
#10 Accepted 8ms 8.855 MiB
#11 Accepted 11ms 8.875 MiB
#12 Accepted 22ms 8.859 MiB
#13 Accepted 42ms 8.75 MiB
#14 Accepted 72ms 8.871 MiB
#15 Accepted 53ms 8.84 MiB
#16 Accepted 70ms 8.75 MiB
#17 Accepted 66ms 8.855 MiB
#18 Accepted 61ms 8.75 MiB
#19 Accepted 46ms 8.961 MiB
#20 Accepted 6ms 8.875 MiB

信息

递交者
类型
递交
题目
P1456 最小总代价
语言
C++
递交时间
2018-03-31 08:27:24
评测时间
2018-03-31 08:27:24
评测机
分数
100
总耗时
515ms
峰值内存
8.961 MiB