{"width":"100%","author_name":"hamayanhamayan","version":"1.0","blog_url":"https://blog.hamayanhamayan.com/","title":"Balance [AtCoder Beginner Contest 129 B]","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","image_url":null,"published":"2019-06-10 00:31:48","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F06%2F10%2F003148\" title=\"Balance [AtCoder Beginner Contest 129 B] - \u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_url":"https://hatena.blog","type":"rich","url":"https://blog.hamayanhamayan.com/entry/2019/06/10/003148","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","description":"https://atcoder.jp/contests/abc129/tasks/abc129_b \u89e3\u8aac https://atcoder.jp/contests/abc129/submissions/5859689\u30b0\u30eb\u30fc\u30d7\u306e\u5206\u3051\u65b9\u306fN-1\u901a\u308a\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u5168\u63a2\u7d22\u3057\u3066\u3001\u5dee\u306e\u7d76\u5bfe\u5024\u306e\u6700\u5c0f\u5024\u3092\u6c42\u3081\u308b\u3002 2\u3064\u306e\u30b0\u30eb\u30fc\u30d7\u306b\u5206\u3051\u305f\u3042\u3068\u3001\u305d\u308c\u305e\u308c\u306e\u91cd\u3055\u306e\u548c\u3092\u6c42\u3081\u308b\u306b\u306f\u7d2f\u7a4d\u548c\u3092\u4f7f\u3046\u3068\u6700\u9069\u3002 \u3057\u304b\u3057\u3001\u4f7f\u308f\u306a\u304f\u3066\u3082\u8a08\u7b97\u91cf\u7684\u306b\u306f\u554f\u984c\u306a\u3044\u3002 \u4e00\u5fdc\u7d2f\u7a4d\u548c\u89e3\u6cd5\u3092\u7d39\u4ecb\u3057\u3066\u304a\u304f\u3002 W[i] := \u756a\u53f7i\u306e\u91cd\u308a\u306e\u91cd\u3055 \u3067\u3042\u308b\u304c\u3001W[i] += W[i - 1]\u3068\u3044\u3046\u8a08\u7b97\u3092\u7e70\u308a\u8fd4\u3059\u3053\u3068\u3067\u3001 W[i] := \u756a\u53f7i\u4ee5\u4e0b\u306e\u91cd\u308a\u306e\u91cd\u2026"}