/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'void search(int, int)':
foo.cc:17:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |  for(int i=0;i<rc[x].size();i++){
      |              ~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:25:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   25 |  scanf("%d%d%d",&K,&V,&n);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~
foo.cc:27:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   27 |   scanf("%d%d",&v[i],&w[i]);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 44, expect 57. 9ms 512.0 KiB
#2 Wrong Answer Read 258, expect 472. 4ms 512.0 KiB
#3 Wrong Answer Read 1390, expect 2753. 8ms 612.0 KiB
#4 Wrong Answer Read 17953, expect 42714. 9ms 2.125 MiB
#5 Wrong Answer Read 8679, expect 11890. 13ms 1.0 MiB
#6 Wrong Answer Read 77446, expect 120448. 36ms 3.367 MiB
#7 Wrong Answer Read 100920, expect 163361. 37ms 3.867 MiB

信息

递交者
类型
递交
题目
P1412 多人背包
语言
C++
递交时间
2022-06-23 11:28:20
评测时间
2022-06-23 11:28:20
评测机
分数
0
总耗时
121ms
峰值内存
3.867 MiB