/ Vijos /

记录详情

Wrong Answer

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

信息

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