/ Vijos /

记录详情

Accepted

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]
   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]
     scanf("%d",&x);
     ~~~~~^~~~~~~~~
foo.cc:119:47: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   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]
   scanf("%d",&Q);
   ~~~~~^~~~~~~~~
foo.cc:125:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     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]
       scanf("%d",&y);
       ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 14ms 12.504 MiB
#2 Accepted 14ms 12.406 MiB
#3 Accepted 14ms 12.43 MiB
#4 Accepted 14ms 12.383 MiB
#5 Accepted 231ms 191.742 MiB
#6 Accepted 229ms 191.711 MiB
#7 Accepted 215ms 191.742 MiB
#8 Accepted 214ms 191.719 MiB
#9 Accepted 560ms 192.746 MiB
#10 Accepted 562ms 192.734 MiB
#11 Accepted 218ms 189.801 MiB
#12 Accepted 217ms 189.77 MiB
#13 Accepted 213ms 189.766 MiB
#14 Accepted 200ms 189.32 MiB
#15 Accepted 207ms 189.254 MiB
#16 Accepted 786ms 190.285 MiB
#17 Accepted 774ms 190.203 MiB
#18 Accepted 719ms 190.348 MiB
#19 Accepted 732ms 190.301 MiB
#20 Accepted 718ms 190.223 MiB

信息

递交者
类型
递交
题目
P2021 切树游戏
语言
C++
递交时间
2021-08-04 16:59:18
评测时间
2021-08-04 16:59:18
评测机
分数
100
总耗时
6861ms
峰值内存
192.746 MiB