/ Vijos /

记录详情

Time Exceeded

/in/foo.cc: In function 'void newway()':
/in/foo.cc:52:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while(a==b) a=rand()%(n-1);a+=2;b+=2;
  ^~~~~
/in/foo.cc:52:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while(a==b) a=rand()%(n-1);a+=2;b+=2;
                             ^
/in/foo.cc: In function 'void cal()':
/in/foo.cc:16:20: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 #define rep(i,a,b) for(int i=a;i<=(b);i++)
                    ^
/in/foo.cc:78:2: note: in expansion of macro 'rep'
  rep(i,1,n) path[opt][i]=i;path[opt][n+1]=1;
  ^~~
/in/foo.cc:78:28: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  rep(i,1,n) path[opt][i]=i;path[opt][n+1]=1;
                            ^~~~
/in/foo.cc: In function 'void newway()':
/in/foo.cc:67:6: warning: 't' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int t;
      ^
# 状态 耗时 内存占用
#1 Accepted 20ms 384.0 KiB
#2 Wrong Answer 71ms 348.0 KiB
#3 Wrong Answer 133ms 384.0 KiB
#4 Wrong Answer 238ms 212.0 KiB
#5 Wrong Answer 560ms 364.0 KiB
#6 Wrong Answer 778ms 256.0 KiB
#7 Wrong Answer 854ms 348.0 KiB
#8 Time Exceeded ≥1006ms ≥372.0 KiB
#9 Time Exceeded ≥1001ms ≥384.0 KiB
#10 Time Exceeded ≥1003ms ≥384.0 KiB

信息

递交者
类型
递交
题目
P1014 旅行商简化版
语言
C++
递交时间
2017-11-25 13:44:45
评测时间
2017-11-25 13:44:45
评测机
分数
10
总耗时
≥5668ms
峰值内存
≥384.0 KiB