{"description":"\u3053\u308c\u306f\u3082\u3063\u3068\u65e9\u304f\u89e3\u3051\u308b\u3079\u304d\u3060\u3063\u305f\u2026 \u554f\u984c No.247 \u7dda\u5f62\u8a08\u753b\u554f\u984c\u3082\u3069\u304d - yukicoder \u89e3\u6cd5 dp[c] = \u300cc\u3092\u4f5c\u308bx_1, ..., x_n\u306e\u7d44\u306e\u6700\u5c0f\u5024\u300d \u3068\u3059\u308b\u3068dp\u3067\u89e3\u3051\u308b\u3002 const int MAXC = 100100; const int MAXN = 101; const int INF = 1e9; int dp[MAXC]; int C, N; int a[MAXN]; int main() { cin.tie(0); ios::sync_with_stdio(false); cin >> C; cin >> N; for (int i = 1; i <= N\u2026","width":"100%","author_name":"mayokoex","type":"rich","blog_url":"https://mayokoex.hatenablog.com/","version":"1.0","author_url":"https://blog.hatena.ne.jp/mayokoex/","blog_title":"mayoko\u2019s diary","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmayokoex.hatenablog.com%2Fentry%2F2015%2F07%2F21%2F231025\" title=\"yukicoder No.247 \u7dda\u5f62\u8a08\u753b\u554f\u984c\u3082\u3069\u304d - mayoko\u2019s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","published":"2015-07-21 23:10:25","image_url":null,"url":"https://mayokoex.hatenablog.com/entry/2015/07/21/231025","categories":["yukicoder"],"height":"190","provider_url":"https://hatena.blog","title":"yukicoder No.247 \u7dda\u5f62\u8a08\u753b\u554f\u984c\u3082\u3069\u304d"}