/ WHOJ /

记录详情

Time Exceeded

foo.cc: In function 'void set()':
foo.cc:15:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   15 |                 if(vin[i]==0)
      |                   ^
foo.cc: In function 'void topsort(int)':
foo.cc:23:35: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   23 |                                 if((--vin[edge[i].to])==0)
      |                                   ^
foo.cc:31:35: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
   31 |                                 if((--vin[edge[i].to])==0)
      |                                   ^
foo.cc: In function 'int main()':
foo.cc:52:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   52 |         for(int i=1;i<=n;i++) vin[i]=vinn[i]; h1=h2=t1=t2=0;
      |         ^~~
foo.cc:52:47: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   52 |         for(int i=1;i<=n;i++) vin[i]=vinn[i]; h1=h2=t1=t2=0;
      |                                               ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 1ms 384.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 24ms 1.367 MiB
#5 Accepted 1ms 384.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 762ms 13.496 MiB
#8 Accepted 593ms 11.242 MiB
#9 Time Exceeded ≥1102ms ≥13.492 MiB
#10 Accepted 260ms 4.242 MiB

信息

递交者
类型
递交
题目
P1638 文物
题目数据
下载
语言
C++
递交时间
2022-09-04 15:26:09
评测时间
2022-09-04 15:26:09
评测机
分数
90
总耗时
≥2751ms
峰值内存
≥13.496 MiB