/ fz_zsl /

记录详情

Time Exceeded

/in/foo.cc: In function 'bool spfa(int)':
/in/foo.cc:10:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while (!q.empty()) q.pop();q.push(s),dis[s]=cnt[s]=0,inq[s]=true;
  ^~~~~
/in/foo.cc:10:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while (!q.empty()) q.pop();q.push(s),dis[s]=cnt[s]=0,inq[s]=true;
                             ^
/in/foo.cc: In function 'bool chk(int)':
/in/foo.cc:20:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (register int i=1;i<=n;++i) e[i].val+=x,e[n+i].val+=x;rtv=spfa(1);
  ^~~
/in/foo.cc:20:60: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (register int i=1;i<=n;++i) e[i].val+=x,e[n+i].val+=x;rtv=spfa(1);
                                                            ^~~
/in/foo.cc:21:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for (register int i=1;i<=n;++i) e[i].val-=x,e[n+i].val-=x;return rtv;
  ^~~
/in/foo.cc:21:60: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for (register int i=1;i<=n;++i) e[i].val-=x,e[n+i].val-=x;return rtv;
                                                            ^~~~~~
/in/foo.cc: In function 'void sol()':
/in/foo.cc:26:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (chk(0)) return puts("0"),void();if (!typ) return puts("1"),void();
  ^~
/in/foo.cc:26:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (chk(0)) return puts("0"),void();if (!typ) return puts("1"),void();
                                      ^~
/in/foo.cc:27:60: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int l=1,r=1000000000,mid;while (l<r) cerr<<mid<<endl,mid=l+r>>1,(chk(mid)?r=mid:l=mid+1);
                                                           ~^~
/in/foo.cc:27:45: warning: 'mid' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int l=1,r=1000000000,mid;while (l<r) cerr<<mid<<endl,mid=l+r>>1,(chk(mid)?r=mid:l=mid+1);
                                             ^~~
# 状态 耗时 内存占用
#1 Accepted 155ms 15.867 MiB
#2 Wrong Answer 28ms 17.734 MiB
#3 Wrong Answer 145ms 16.973 MiB
#4 Wrong Answer 137ms 18.906 MiB
#5 Wrong Answer 177ms 16.613 MiB
#6 Wrong Answer 22ms 18.578 MiB
#7 Wrong Answer 171ms 18.059 MiB
#8 Wrong Answer 151ms 16.707 MiB
#9 Wrong Answer 213ms 19.242 MiB
#10 Wrong Answer 1790ms 16.5 MiB
#11 Wrong Answer 212ms 18.578 MiB
#12 Wrong Answer 1899ms 17.516 MiB
#13 Wrong Answer 1766ms 16.867 MiB
#14 Time Exceeded ≥3001ms ≥84.441 MiB
#15 Time Exceeded ≥3001ms ≥84.426 MiB
#16 Time Exceeded ≥3001ms ≥84.371 MiB
#17 Time Exceeded ≥3001ms ≥84.422 MiB
#18 Time Exceeded ≥3001ms ≥84.453 MiB
#19 Time Exceeded ≥3000ms ≥84.43 MiB
#20 Time Exceeded ≥3005ms ≥84.441 MiB

信息

递交者
类型
递交
题目
P1001 「2020-02-14 省选模拟赛」传送 (teleport)
语言
C++
递交时间
2020-02-15 13:55:06
评测时间
2020-02-15 17:05:10
评测机
分数
5
总耗时
≥27884ms
峰值内存
≥84.453 MiB