{"blog_url":"https://blog.hamayanhamayan.com/","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","type":"rich","image_url":null,"url":"https://blog.hamayanhamayan.com/entry/2018/09/04/214546","width":"100%","provider_url":"https://hatena.blog","title":"Equalize [Manthan, Codefest 18 C]","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F09%2F04%2F214546\" title=\"Equalize [Manthan, Codefest 18 C] - \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>","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"height":"190","published":"2018-09-04 21:45:46","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","provider_name":"Hatena Blog","description":"http://codeforces.com/contest/1037/problem/C2\u9032\u6570\u8868\u8a18\u3055\u308c\u305fN\u6841\u306e\u6570A,B\u304c\u3042\u308b\u3002 A\u306b\u5bfe\u3057\u3066\u4ee5\u4e0b\u306e\u64cd\u4f5c\u3092\u884c\u3063\u3066B\u306b\u3059\u308b\u305f\u3081\u306e\u6700\u5c0f\u30b3\u30b9\u30c8\u306f\uff1f i\u30d3\u30c3\u30c8\u76ee\u3068j\u30d3\u30c3\u30c8\u76ee\u3092swap\u3059\u308b\uff08\u5fc5\u8981\u30b3\u30b9\u30c8abs(i - j)\uff09 i\u30d3\u30c3\u30c8\u76ee\u306e\u30d3\u30c3\u30c8\u3092\u53cd\u8ee2\u3055\u305b\u308b\uff08\u5fc5\u8981\u30b3\u30b9\u30c81\uff09 \u89e3\u6cd5 http://codeforces.com/contest/1037/submission/42452744swap\u306b\u3064\u3044\u3066\u3067\u3042\u308b\u304c\u30012\uff1cabs(i-j)\u3067\u3042\u308c\u3070\u3001\u53cd\u8ee2\u64cd\u4f5c\u3067\u4ee3\u7528\u3057\u305f\u307b\u3046\u304c\u30b3\u30b9\u30c8\u304c\u5c0f\u3055\u304f\u3066\u6e08\u3080\u3002 \u305d\u306e\u305f\u3081\u3001\u4e0a\u306e\u64cd\u4f5c\u306f\u300ci\u30d3\u30c3\u30c8\u76ee\u3068i+1\u30d3\u30c3\u30c8\u76ee\u3092swap\u3059\u308b\uff08\u5fc5\u8981\u30b3\u30b9\u30c81\u2026","author_name":"hamayanhamayan","version":"1.0"}