/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'void DFS(int, int)':
foo.cc:60:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < edge[x].son.size(); i++)
                         ~~^~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'void FindDFS(int)':
foo.cc:75:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int i = 0; i < edge[x].son.size(); i++)
                         ~~^~~~~~~~~~~~~~~~~~~~
foo.cc:80:51: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
                 ans[y] = ans[x] + (edge[root].num - edge[y].num << 1) * edge[x].dis[i];
                                    ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:91:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ~~~~~^~~~~~~~~
foo.cc:93:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d",&edge[i].num);
         ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:97:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d%d", &x, &y, &z);
         ~~~~~^~~~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Wrong Answer Read 1, expect 5. 7ms 6.535 MiB
#2 Wrong Answer Read 1, expect 3. 7ms 6.496 MiB
#3 Wrong Answer Read 1, expect 133. 7ms 6.5 MiB
#4 Wrong Answer Read 1, expect 95. 9ms 6.613 MiB
#5 Wrong Answer Read 1, expect 1386. 9ms 6.629 MiB
#6 Wrong Answer Read 1, expect 516. 10ms 6.805 MiB
#7 Wrong Answer Read 1, expect 9722. 18ms 7.52 MiB
#8 Wrong Answer Read 1, expect 1174. 66ms 9.504 MiB
#9 Accepted 217ms 16.469 MiB
#10 Wrong Answer Read 1, expect 95674. 215ms 16.469 MiB

信息

递交者
类型
递交
题目
P1487 景点中心
语言
C++
递交时间
2021-03-23 10:48:43
评测时间
2021-03-23 10:48:43
评测机
分数
10
总耗时
570ms
峰值内存
16.469 MiB