/ WHOJ /

记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:52:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   52 |  scanf("%d%d",&n,&m);
      |  ~~~~~^~~~~~~~~~~~~~
foo.cc:53:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   53 |  for(int i=1;i<=n;++i)scanf("%d",a+i),vec.push_back(a[i]);
      |                       ~~~~~^~~~~~~~~~
foo.cc:58:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   58 |   scanf("%d%d",&u,&v);
      |   ~~~~~^~~~~~~~~~~~~~
foo.cc:67:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   67 |   scanf("%d%d",&u,&v),u^=ans,nw.reset();
      |   ~~~~~^~~~~~~~~~~~~~
Found 4 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Time Exceeded ≥1101ms ≥11.613 MiB
#3 Accepted 387ms 2.738 MiB
#4 Time Exceeded ≥1101ms ≥7.488 MiB

信息

递交者
类型
递交
题目
P1160 Count on a tree II/【模板】树分块
题目数据
下载
语言
C++
递交时间
2022-05-22 12:00:32
评测时间
2022-05-22 12:01:37
评测机
分数
50
总耗时
≥2593ms
峰值内存
≥11.613 MiB