/ Vijos /

记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:49:13: warning: unused variable 'maxn' [-Wunused-variable]
   long long maxn = a[i].num;
             ^~~~
foo.cc:38:12: warning: unused variable 'sum' [-Wunused-variable]
  long long sum = 0;
            ^~~
foo.cc:53:24: warning: 'tmp2' may be used uninitialized in this function [-Wmaybe-uninitialized]
   else ans -= (a[tmp2].k * 2), tmp2 = tmp, temp = a[tmp].k, ans += a[tmp].f;
                ~~~~~~~~^

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
正在同步测试数据,请稍后
{"receive":"2020-07-10T03:29:31.655Z","handle":"2020-07-10T03:29:31.655Z","cache_start":"2020-07-10T03:29:31.685Z","read_cases":"2020-07-10T03:29:33.733Z","judge":"2020-07-10T03:29:33.733Z","done":"2020-07-10T03:29:34.851Z"}
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Wrong Answer 读取到 5154 ,应为 5157 1ms 256.0 KiB
#3 Wrong Answer 读取到 16509 ,应为 16529 1ms 256.0 KiB
#4 Wrong Answer 读取到 18672 ,应为 18673 0ms 256.0 KiB
#5 Wrong Answer 读取到 165501 ,应为 165504 1ms 256.0 KiB
#6 Wrong Answer 读取到 494214 ,应为 494215 1ms 256.0 KiB
#7 Runtime Error 24ms 1.918 MiB
#8 Runtime Error 28ms 2.148 MiB
#9 Runtime Error 31ms 2.375 MiB
#10 Runtime Error 35ms 2.609 MiB

信息

递交者
类型
递交
题目
P1977 推销员
语言
C++
递交时间
2020-07-10 11:29:31
评测时间
2020-07-10 11:29:31
评测机
分数
10
总耗时
127ms
峰值内存
2.609 MiB