记录详情

Memory Exceeded

/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("%lld\n",s),0;for(long long i=1;i<=t;i++) for(long long j=n;j>=c[i];j--) f[j]=max(f[j],f[j-c[i]]+c[i]);
  ^~
/in/foo.cc:6:39: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if(s<=n) return printf("%lld\n",s),0;for(long long i=1;i<=t;i++) for(long long j=n;j>=c[i];j--) f[j]=max(f[j],f[j-c[i]]+c[i]);
                                       ^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 320.0 KiB
#2 Memory Exceeded ≥450ms ≥16.0 MiB
#3 Accepted 1ms 324.0 KiB
#4 Accepted 31ms 576.0 KiB
#5 Accepted 1ms 192.0 KiB
#6 Accepted 6ms 324.0 KiB
#7 Accepted 15ms 580.0 KiB
#8 Memory Exceeded ≥436ms ≥16.0 MiB
#9 Time Exceeded ≥1005ms ≥12.922 MiB
#10 Accepted 6ms 448.0 KiB

信息

递交者
类型
递交
题目
P1000 窃取培优1.0
语言
C++
递交时间
2020-02-10 15:47:59
评测时间
2020-02-10 15:47:59
评测机
分数
70
总耗时
≥1959ms
峰值内存
≥16.0 MiB