/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int spfa(int, int, long long int&, long long int&)':
/in/foo.cc:37:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (int i=0;i<g[u].size();++i) {
                ~^~~~~~~~~~~~
/in/foo.cc:28:31: warning: iteration 1005 invokes undefined behavior [-Waggressive-loop-optimizations]
  for(int i=0;i<=1005;++i) d[i]=INF;
                           ~~~~^~~~
/in/foo.cc:28:15: note: within this loop
  for(int i=0;i<=1005;++i) d[i]=INF;
              ~^~~~~~
# 状态 耗时 内存占用
#1 Accepted 39ms 640.0 KiB
#2 Accepted 20ms 512.0 KiB
#3 Accepted 55ms 612.0 KiB
#4 Accepted 50ms 632.0 KiB
#5 Accepted 25ms 384.0 KiB
#6 Accepted 26ms 512.0 KiB
#7 Accepted 7ms 472.0 KiB
#8 Accepted 8ms 500.0 KiB
#9 Accepted 5ms 512.0 KiB
#10 Accepted 12ms 640.0 KiB

信息

递交者
类型
递交
题目
P1525 生命之泉
语言
C++
递交时间
2018-01-10 20:55:24
评测时间
2018-01-10 20:55:24
评测机
分数
100
总耗时
250ms
峰值内存
640.0 KiB