/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:31: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
  for(int i=1;i<=n;i++) dp[1<<i-1][i]=0;
                              ~^~
/in/foo.cc:23:14: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    if(!i&1<<j-1) continue;
             ~^~
/in/foo.cc:23:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
    if(!i&1<<j-1) continue;
       ^~
/in/foo.cc:26:15: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     if(!i&1<<k-1 || j==k) continue;
              ~^~
/in/foo.cc:26:8: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
     if(!i&1<<k-1 || j==k) continue;
        ^~
/in/foo.cc:27:36: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
     dp[i][j]=min(dp[i][j],dp[i^1<<j-1][k]+_map[k][j]);
                                   ~^~
/in/foo.cc:31:12: warning: unused variable 'minn' [-Wunused-variable]
  long long minn=0x3f3f3f;
            ^~~~
# 状态 耗时 内存占用
#1 Time Exceeded ≥1000ms ≥212.0 KiB
#2 Time Exceeded ≥1000ms ≥220.0 KiB
#3 Time Exceeded ≥1001ms ≥260.0 KiB
#4 Time Exceeded ≥1000ms ≥220.0 KiB
#5 Time Exceeded ≥1000ms ≥228.0 KiB
#6 Time Exceeded ≥1001ms ≥216.0 KiB
#7 Time Exceeded ≥1000ms ≥228.0 KiB
#8 Time Exceeded ≥1000ms ≥208.0 KiB
#9 Time Exceeded ≥1000ms ≥220.0 KiB
#10 Time Exceeded ≥1000ms ≥208.0 KiB
#11 Time Exceeded ≥1001ms ≥224.0 KiB
#12 Time Exceeded ≥1000ms ≥336.0 KiB
#13 Time Exceeded ≥1001ms ≥228.0 KiB
#14 Time Exceeded ≥1001ms ≥340.0 KiB
#15 Time Exceeded ≥1000ms ≥228.0 KiB
#16 Time Exceeded ≥1000ms ≥340.0 KiB
#17 Time Exceeded ≥1000ms ≥220.0 KiB
#18 Time Exceeded ≥1001ms ≥336.0 KiB
#19 Time Exceeded ≥1001ms ≥228.0 KiB
#20 Time Exceeded ≥1001ms ≥208.0 KiB

信息

递交者
类型
递交
题目
P1456 最小总代价
语言
C++
递交时间
2020-07-30 20:41:46
评测时间
2020-07-30 20:41:46
评测机
分数
0
总耗时
≥20019ms
峰值内存
≥340.0 KiB