/ Vijos /

记录详情

Accepted

foo.cc: In function 'void Kruskal()':
foo.cc:32:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d", &n, &m);
  ~~~~~^~~~~~~~~~~~~~~~
foo.cc:34:44: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(register int i = 1; i <= m; i++) scanf("%d%d%d" , &E[i].u , &E[i].v , &E[i].w);
                                       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'void solve()':
foo.cc:84:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &q);
  ~~~~~^~~~~~~~~~
foo.cc:87:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d", &u, &v);
   ~~~~~^~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Accepted 4ms 512.0 KiB
#4 Accepted 3ms 512.0 KiB
#5 Accepted 5ms 432.0 KiB
#6 Accepted 3ms 384.0 KiB
#7 Accepted 17ms 1.027 MiB
#8 Accepted 17ms 948.0 KiB
#9 Accepted 16ms 920.0 KiB
#10 Accepted 15ms 908.0 KiB
#11 Accepted 18ms 964.0 KiB
#12 Accepted 17ms 1.031 MiB
#13 Accepted 41ms 2.477 MiB
#14 Accepted 41ms 2.312 MiB
#15 Accepted 35ms 2.383 MiB
#16 Accepted 36ms 2.398 MiB
#17 Accepted 41ms 2.445 MiB
#18 Accepted 40ms 2.285 MiB
#19 Accepted 39ms 2.18 MiB
#20 Accepted 39ms 2.277 MiB

信息

递交者
类型
递交
题目
P1843 货车运输
语言
C++
递交时间
2021-01-16 10:11:06
评测时间
2021-01-16 10:11:06
评测机
分数
100
总耗时
436ms
峰值内存
2.477 MiB