/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:112:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  112 |   scanf("%d%d",&n,&m);
      |   ~~~~~^~~~~~~~~~~~~~
foo.cc:114:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  114 |     scanf("%d",&x);
      |     ~~~~~^~~~~~~~~
foo.cc:119:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  119 |   for(i=1;i<n;i++)scanf("%d%d",&x,&y),add(x,y),add(y,x);
      |                   ~~~~~^~~~~~~~~~~~~~
foo.cc:123:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  123 |   scanf("%d",&Q);
      |   ~~~~~^~~~~~~~~
foo.cc:125:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  125 |     scanf("%s%d",op,&x);
      |     ~~~~~^~~~~~~~~~~~~~
foo.cc:127:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  127 |       scanf("%d",&y);
      |       ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 39ms 12.492 MiB
#2 Accepted 37ms 12.496 MiB
#3 Accepted 26ms 12.5 MiB
#4 Accepted 24ms 12.5 MiB
#5 Accepted 520ms 191.367 MiB
#6 Accepted 428ms 191.367 MiB
#7 Accepted 285ms 191.242 MiB
#8 Accepted 315ms 191.367 MiB
#9 Accepted 836ms 192.367 MiB
#10 Accepted 814ms 192.379 MiB
#11 Accepted 234ms 189.742 MiB
#12 Accepted 234ms 189.617 MiB
#13 Accepted 276ms 189.637 MiB
#14 Accepted 233ms 189.242 MiB
#15 Accepted 270ms 189.242 MiB
#16 Accepted 919ms 190.242 MiB
#17 Accepted 875ms 190.242 MiB
#18 Accepted 852ms 190.242 MiB
#19 Accepted 856ms 190.418 MiB
#20 Time Exceeded ≥1045ms ≥190.242 MiB

信息

递交者
类型
递交
题目
P2021 切树游戏
语言
C++
递交时间
2022-04-18 19:19:24
评测时间
2022-04-18 19:19:24
评测机
分数
95
总耗时
≥9127ms
峰值内存
≥192.379 MiB