/ WHOJ /

记录详情

Time Exceeded

foo.cc: In function 'void dFs(int)':
foo.cc:31:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   31 |  if(mark[x])top[x]=x;dfn[x]=++cnt;
      |  ^~
foo.cc:31:22: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   31 |  if(mark[x])top[x]=x;dfn[x]=++cnt;
      |                      ^~~
foo.cc: In function 'void calc(int, int, int)':
foo.cc:41:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   41 |  if(!v[w[x]])bt[w[x]]=1,sum++;v[w[x]]++;
      |  ^~
foo.cc:41:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   41 |  if(!v[w[x]])bt[w[x]]=1,sum++;v[w[x]]++;
      |                               ^
foo.cc: In function 'int main()':
foo.cc:53:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   53 |  scanf("%d%d",&n,&m);
      |  ~~~~~^~~~~~~~~~~~~~
foo.cc:55:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   55 |   scanf("%d",&w[i]),b[i]=w[i];
      |   ~~~~~^~~~~~~~~~~~
foo.cc:62:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   62 |   scanf("%d%d",&x,&y);
      |   ~~~~~^~~~~~~~~~~~~~
foo.cc:71:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   71 |   scanf("%d%d",&x,&y);
      |   ~~~~~^~~~~~~~~~~~~~
Found 4 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 654ms 93.492 MiB
#3 Accepted 89ms 2.742 MiB
#4 Time Exceeded ≥1046ms ≥90.867 MiB

信息

递交者
类型
递交
题目
P1160 Count on a tree II/【模板】树分块
题目数据
下载
语言
C++
递交时间
2022-05-22 11:57:20
评测时间
2022-05-22 11:58:14
评测机
分数
75
总耗时
≥1792ms
峰值内存
≥93.492 MiB