{"image_url":null,"description":"\u554f\u984c C - Ubiquity \u516c\u5f0f\u89e3\u8aac\u306b\u3042\u308b\u901a\u308a\u3001\u5305\u9664\u539f\u7406\u3092\u7406\u89e3\u3057\u3066\u3044\u308c\u3070\u6570\u884c\u3067\u89e3\u3051\u308b\u554f\u984c\u3002 \u5305\u9664\u539f\u7406\u306b\u305f\u3069\u308a\u7740\u3051\u305a\u7d0d\u5f97\u304c\u884c\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u516c\u5f0f\u89e3\u8aac\u52d5\u753b\u3067\u8a00\u53ca\u3055\u308c\u3066\u3044\u305fDP\u89e3\u6cd5\u3067\u89e3\u3044\u3066\u307f\u305f\u3002 DP\u89e3\u6cd5 DP\u306f [N][0\u3092\u542b\u3093\u3067\u3044\u308b\u304b\u3069\u3046\u304b][9\u3092\u542b\u3093\u3067\u3044\u308b\u304b\u3069\u3046\u304b] \u3067\u53d6\u308b\u3002 4\u91cd\u30eb\u30fc\u30d7\u3067\u6570\u3048\u4e0a\u3052\u3066\u3044\u304d\u3001dp[n][1][1] \u304c\u6700\u7d42\u7684\u306b\u9577\u3055n\u30670,9\u3092\u542b\u3080\u6570\u5217\u306e\u6570\u3068\u306a\u308b\u3002 #include <bits/stdc++.h> using namespace std; #define REP(i, n) for(int i=0;i<n;i++) using ll = long long; con\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftic40.hatenablog.com%2Fentry%2F2020%2F09%2F14%2F203436\" title=\"atcoder ABC 178 C - Ubiquity - Do Something\" 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","type":"rich","author_name":"tic40","url":"https://tic40.hatenablog.com/entry/2020/09/14/203436","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/tic40/","version":"1.0","published":"2020-09-14 20:34:36","width":"100%","blog_url":"https://tic40.hatenablog.com/","blog_title":"Do Something","categories":["AtCoder","DP"],"height":"190","title":"atcoder ABC 178 C - Ubiquity"}