{"description":"\u554f\u984c\u6587 https://atcoder.jp/contests/abc369/tasks/abc369_f \u554f\u984c\u6982\u8981 $h \\times w$ \u306e\u30b0\u30ea\u30c3\u30c9\u72b6\u306e\u76e4\u9762\u306b $n$ \u679a\u306e\u30b3\u30a4\u30f3\u304c\u7f6e\u304b\u308c\u3066\u3044\u308b\uff0e$i$ \u756a\u76ee\u306e\u30b3\u30a4\u30f3\u306f\u30bb\u30eb $( R_i, C_i )$ \u306b\u3042\u308a\uff0c\u3053\u3053\u3067\uff0c\u6b21\u304c\u6210\u308a\u7acb\u3064\uff1a $\\forall i, ( R_i, C_i ) \\not \\in \\{ ( 1, 1 ), ( h, w ) \\}$ $i \\neq j \\Rightarrow ( R_i, C_i ) \\neq ( R_j, C_j )$ \u30bb\u30eb $( 1, 1 )$ \u304b\u3089\u59cb\u3081\u3066\uff0c\u4e0b\u307e\u305f\u306f\u53f3\u3078\u306e\u79fb\u52d5\u3092\u7e70\u308a\u8fd4\u3057\u3066\u30bb\u30eb $( \u2026","author_name":"torus711","width":"100%","blog_title":"torus711 \u306e\u30a2\u30ec","published":"2024-09-01 18:12:16","image_url":null,"categories":["AtCoder","\u52d5\u7684\u8a08\u753b\u6cd5"],"author_url":"https://blog.hatena.ne.jp/torus711/","title":"AtCoder Beginner Contest 369, F : Gather Coins","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","url":"https://torus711.hatenablog.com/entry/2024/09/01/181216","blog_url":"https://torus711.hatenablog.com/","height":"190","type":"rich","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorus711.hatenablog.com%2Fentry%2F2024%2F09%2F01%2F181216\" title=\"AtCoder Beginner Contest 369, F : Gather Coins - torus711 \u306e\u30a2\u30ec\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}