{"height":"190","version":"1.0","provider_name":"Hatena Blog","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/p/parukii/20180501/20180501134418.jpg","published":"2018-05-01 14:01:48","author_url":"https://blog.hatena.ne.jp/parukii/","url":"https://par.hateblo.jp/entry/2018/05/01/140148","provider_url":"https://hatena.blog","width":"100%","title":"B: Find Symmetries | AtCoder Grand Contest 023","description":"\u3088\u3044\u76e4\u9762\u3067\u3042\u308b\u6761\u4ef6\u306f\u30011<=i<=N\u306b\u3064\u3044\u3066i\u884c\u76ee\u3068i\u5217\u76ee\u304c\u7b49\u3057\u3044\u3053\u3068\u3068\u540c\u5024\u3002\u4f8b\u3048\u3070N=4\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u304c\u7b49\u3057\u3051\u308c\u3070\u3088\u3044\u3002 \u66f4\u306b\u3053\u306e\u56f3\u304b\u3089\u3001\u4efb\u610f\u306e\u81ea\u7136\u6570\u306e\u7d44(A, B)\u306b\u3064\u3044\u3066(A+x, B+x) (x\u306f\u81ea\u7136\u6570) \u3082(A,B)\u3068\u6bd4\u8f03\u5bfe\u8c61\u304c\u540c\u3058\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308b\u3002\u305f\u3068\u3048\u3070\u3001(A, B) => (A+1, B+1)\u306b\u304a\u3044\u3066\u6bd4\u8f03\u3059\u308b\u884c\u3068\u5217\u304c\u3059\u3079\u3066\u53f3\u4e0b\u306b\u305a\u308c\u308b\uff08\u305f\u3060\u3057\u4e0b\u7aef\u3001\u53f3\u7aef\u306f\u5faa\u74b0\uff09\u3002\u3088\u3063\u3066\u3001\u5404A-B=C\u306b\u3064\u3044\u3066(C, 1) \u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002\u3053\u306e\u53ef\u5426\u306f(C, x) (1<=C<=N)\u3068\u7b49\u3057\u3044\u306e\u3067N\u56de\u3060\u3051\u30c1\u30a7\u30c3\u30af\u3059\u308c\u3070\u3044\u3044\u3002\uff11\u56de\u306e\u30c1\u30a7\u30c3\u30af\u306fO(N2)\u304b\u304b\u308a\u3001\u5168\u4f53\u3067O(N3)\u306e\u6642\u9593\u3067\u9593\u306b\u5408\u3046\u3002 \u516c\u5f0f\u89e3\u2026","type":"rich","author_name":"parukii","blog_url":"https://par.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpar.hateblo.jp%2Fentry%2F2018%2F05%2F01%2F140148\" title=\"B: Find Symmetries | AtCoder Grand Contest 023 - paruki\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["\u6570\u3048\u4e0a\u3052"],"blog_title":"paruki\u306e\u30d6\u30ed\u30b0"}