/ 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 37ms 12.492 MiB
#2 Accepted 35ms 12.496 MiB
#3 Accepted 19ms 12.375 MiB
#4 Accepted 24ms 12.5 MiB
#5 Accepted 334ms 191.242 MiB
#6 Accepted 362ms 191.242 MiB
#7 Accepted 249ms 191.242 MiB
#8 Accepted 263ms 191.242 MiB
#9 Accepted 607ms 192.242 MiB
#10 Accepted 609ms 192.242 MiB
#11 Accepted 250ms 189.492 MiB
#12 Accepted 215ms 189.492 MiB
#13 Accepted 223ms 189.617 MiB
#14 Accepted 219ms 189.117 MiB
#15 Accepted 205ms 189.117 MiB
#16 Accepted 746ms 190.117 MiB
#17 Accepted 776ms 190.09 MiB
#18 Time Exceeded ≥1020ms ≥190.242 MiB
#19 Accepted 743ms 190.242 MiB
#20 Accepted 796ms 190.121 MiB

信息

递交者
类型
递交
题目
P2021 切树游戏
语言
C++
递交时间
2021-12-19 16:28:40
评测时间
2021-12-19 16:28:40
评测机
分数
95
总耗时
≥7743ms
峰值内存
≥192.242 MiB