{"author_url":"https://blog.hatena.ne.jp/peroon/","width":"100%","categories":["1100"],"provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fperogram.hateblo.jp%2Fentry%2F2020%2F10%2F26%2F225616\" title=\"B - Putting Bricks in the Wall \uff5e\u5165\u53e3\u3068\u51fa\u53e3\u306a\u3089\u7ba1\u7406\u3057\u3084\u3059\u3044\uff5e - perogram\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://perogram.hateblo.jp/entry/2020/10/26/225616","image_url":null,"height":"190","provider_name":"Hatena Blog","type":"rich","blog_title":"perogram","author_name":"peroon","blog_url":"https://perogram.hateblo.jp/","published":"2020-10-26 22:56:16","title":"B - Putting Bricks in the Wall \uff5e\u5165\u53e3\u3068\u51fa\u53e3\u306a\u3089\u7ba1\u7406\u3057\u3084\u3059\u3044\uff5e","version":"1.0","description":"Quiz https://codeforces.com/contest/1421/problem/B AC https://codeforces.com/contest/1421/submission/96783516 \u89e3\u8aac \u5de6\u4e0a\u309200\u3067\u56f2\u3080\u3001\u53f3\u4e0b\u309211\u3067\u56f2\u3080\u306a\u3069\u3067\u304d\u308c\u3070\u5230\u9054\u4e0d\u53ef\u80fd\u306b\u3067\u304d\u308b \u5de6\u4e0a\u30920,1\u306e\u3069\u3061\u3089\u3067\u56f2\u3080\u304b\u3001\u53f3\u4e0b\u30920,1\u306e\u3069\u3061\u3089\u3067\u56f2\u3080\u304b\u306f\u521d\u671f\u72b6\u614b\u3092\u898b\u3066\u9069\u5207\u306b\u9078\u3079\u30702\u56de\u306eswap\u3067\u5341\u5206 \u3053\u3046\u3044\u3046\u30b0\u30ea\u30c3\u30c9\u3092\u898b\u308b\u3068bfs\u3057\u305d\u3046\u306b\u306a\u308b\u304c\u4e0d\u8981\u3060\u3063\u305f void solve(){ ll N; cin>>N; VS S(N); rep(i,N)cin>>S[i]; ll goal=0; if(S[\u2026"}