记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if(s<n) return printf("-1\n"),0;for(register int i=1;i<=t;i++) for(register int j=n;j>=c[i];j--) f[j]=max(f[j],f[j-c[i]]+c[i]);
  ^~
/in/foo.cc:6:34: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(s<n) return printf("-1\n"),0;for(register int i=1;i<=t;i++) for(register int j=n;j>=c[i];j--) f[j]=max(f[j],f[j-c[i]]+c[i]);
                                  ^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 324.0 KiB
#2 Accepted 425ms 9.793 MiB
#3 Wrong Answer 1ms 200.0 KiB
#4 Wrong Answer 1ms 196.0 KiB
#5 Accepted 1ms 196.0 KiB
#6 Wrong Answer 1ms 200.0 KiB
#7 Wrong Answer 1ms 196.0 KiB
#8 Wrong Answer 1ms 200.0 KiB
#9 Wrong Answer 1ms 196.0 KiB
#10 Accepted 5ms 328.0 KiB

信息

递交者
类型
递交
题目
P1000 窃取培优1.0
语言
C++
递交时间
2020-02-10 15:39:04
评测时间
2020-02-10 15:39:04
评测机
分数
40
总耗时
443ms
峰值内存
9.793 MiB