版本比较
[ARC178C] Sum of Abs 2 题解
正文
增加 1 行删除 1 行
58 行未改动596061626363646566672 行未改动58 行未改动 for(int j=tmp;j<=maxn;j++) f[j]=min(f[j],f[j-tmp]+1); } for(int i=1;i<=n;i++) cout<<(f[a[i]]==INF?-1:f[a[i]])<<'\n'; return 0;} }```[AT AC record](https://atcoder.jp/contests/arc178/submissions/71244166)
Written by [toolong114514](/user/477821) on 2025/11/26.2 行未改动