/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:15:36: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   15 |  for (int i = 1;i <= n;++ i) f[1<<i-1][i] = 0;
      |                                   ~^~
foo.cc:18:16: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
   18 |    if (((i >> j-1) & 1) == 1) {
      |               ~^~
foo.cc:20:19: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
   20 |      if (((i >> k - 1) & 1) == 0) {
      |                 ~~^~~
foo.cc:21:16: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   21 |       f[i|(1<<k-1)][k] = min(f[i][j] + a[j][k], f[i|(1<<k-1)][k]);
      |               ~^~
foo.cc:21:58: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   21 |       f[i|(1<<k-1)][k] = min(f[i][j] + a[j][k], f[i|(1<<k-1)][k]);
      |                                                         ~^~
foo.cc:8:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf ("%d",&n);
      |  ~~~~~~^~~~~~~~~
foo.cc:11:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |    scanf("%d",&a[i][j]);
      |    ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 5.375 MiB
#2 Accepted 9ms 5.375 MiB
#3 Accepted 7ms 5.375 MiB
#4 Accepted 7ms 5.375 MiB
#5 Accepted 8ms 5.375 MiB
#6 Accepted 7ms 5.375 MiB
#7 Accepted 8ms 5.375 MiB
#8 Accepted 10ms 5.5 MiB
#9 Accepted 9ms 5.375 MiB
#10 Accepted 7ms 5.5 MiB
#11 Accepted 10ms 5.375 MiB
#12 Accepted 12ms 5.375 MiB
#13 Accepted 40ms 5.512 MiB
#14 Accepted 40ms 5.5 MiB
#15 Accepted 40ms 5.496 MiB
#16 Accepted 41ms 5.375 MiB
#17 Accepted 37ms 5.375 MiB
#18 Accepted 37ms 5.375 MiB
#19 Accepted 37ms 5.375 MiB
#20 Accepted 7ms 5.5 MiB

信息

递交者
类型
递交
题目
P1456 最小总代价
语言
C++
递交时间
2022-03-15 18:26:43
评测时间
2022-03-15 18:26:43
评测机
分数
100
总耗时
390ms
峰值内存
5.512 MiB