记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:12:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int i=1;i<=m;i++)
     ^~~
foo.cc:18:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
      printf("max=%d",c[n]);
      ^~~~~~
foo.cc:9:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n,&m);
  ~~~~~^~~~~~~~~~~~~~
foo.cc:11:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d%d",&a[i].n1,&a[i].m1);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 380.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 1ms 384.0 KiB
#6 Accepted 1ms 384.0 KiB
#7 Accepted 1ms 384.0 KiB
#8 Accepted 1ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB
#11 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
完全背包问题
题目数据
下载
语言
C++
递交时间
2019-07-06 11:16:31
评测时间
2021-04-28 03:32:40
评测机
分数
100
总耗时
23ms
峰值内存
384.0 KiB