{"author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","width":"100%","published":"2018-08-12 08:27:02","height":"190","author_name":"hamayanhamayan","title":"Elections [Codeforces Round #503 (by SIS, Div. 1) A]","type":"rich","blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","provider_name":"Hatena Blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2018%2F08%2F12%2F082702\" title=\"Elections [Codeforces Round #503 (by SIS, Div. 1) A] - \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>","blog_url":"https://blog.hamayanhamayan.com/","provider_url":"https://hatena.blog","url":"https://blog.hamayanhamayan.com/entry/2018/08/12/082702","image_url":null,"categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"description":"http://codeforces.com/contest/1019/problem/AN\u4eba\u306e\u6709\u6a29\u8005\u3068M\u7a2e\u985e\u306e\u653f\u515a\u304c\u3042\u308b\u3002 i\u756a\u76ee\u306e\u4eba\u306f\u3082\u3068\u3082\u3068P[i]\u756a\u76ee\u306e\u653f\u515a\u306b\u6295\u7968\u3057\u3066\u3044\u308b\u304c\u3001C[i]\u5186\u652f\u6255\u3046\u3053\u3068\u3067\u5225\u306e\u653f\u515a\u306b\u6295\u7968\u3057\u3066\u304f\u308c\u308b\u3002 1\u756a\u76ee\u306e\u653f\u515a\u304c\u9078\u6319\u3067\u52dd\u3064\u306b\u306f\u6700\u5c0f\u3067\u3044\u304f\u3089\u5fc5\u8981\u304b\u3002 \u203b\u9078\u6319\u3067\u52dd\u3064\u306b\u306f\u4ed6\u306e\u653f\u515a\u3088\u308a\u3082\u591a\u304f\u306e\u7968\u3092\u96c6\u3081\u308b\u5fc5\u8981\u304c\u3042\u308b\uff08\u540c\u3058\u7968\u6570\u306f\u99c4\u76ee\uff09 \u8003\u5bdf\u904e\u7a0b 1. 3*10^3\u306a\u306e\u3067\u30012\u4e57\u304f\u3089\u3044\u306a\u3089\u9593\u306b\u5408\u3046\u611f\u3058\u304c\u3042\u308b 2. \u306a\u306b\u304b\u5168\u63a2\u7d22\u3059\u308b\u3082\u306e\u3092\u8003\u3048\u308b\u21921\u756a\u76ee\u306e\u653f\u515a\u304c\u6700\u7d42\u7684\u306b\u96c6\u3081\u305f\u7968\u6570\u3067\u5168\u63a2\u7d22\u304c\u826f\u3044\u306e\u3067\u306f\uff1f 3. 1\u756a\u76ee\u306e\u653f\u515a\u304c\u96c6\u3081\u305f\u7968\u6570\u304c\u5206\u304b\u308c\u3070\u3001\u305d\u308c\u4ee5\u4e0a\u306e\u7968\u6570\u3092\u6301\u3063\u3066\u3044\u308b\u4ed6\u306e\u653f\u515a\u304b\u3089\u7968\u2026"}