{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fami-atcoder.hatenablog.com%2Fentry%2F20191016%2F1571211374\" title=\"AtCoder ABC 080 D - Recording (Go) - \u3042\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306eAtCoder\u596e\u95d8\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"AtCoder ABC 080 D - Recording (Go)","categories":["\u7af6\u30d7\u30ed","AtCoder","ABC080","D\u554f\u984c","400\u70b9","Go"],"provider_url":"https://hatena.blog","width":"100%","url":"https://ami-atcoder.hatenablog.com/entry/20191016/1571211374","author_url":"https://blog.hatena.ne.jp/amifiable/","blog_title":"\u3042\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306eAtCoder\u596e\u95d8\u8a18","type":"rich","height":"190","provider_name":"Hatena Blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/154149487/1553670776372553","published":"2019-10-16 16:36:14","author_name":"amifiable","version":"1.0","blog_url":"https://ami-atcoder.hatenablog.com/","description":"irisrune\u3067\u3059\u3002\u5148\u9031\u306f\u30b3\u30f3\u30c6\u30b9\u30c8\u304c\u306a\u304b\u3063\u305f\u306e\u3067\u4eca\u9031\u306f\u904e\u53bb\u554f\u3092\u6271\u3044\u307e\u3059\u3002 \u554f\u984c atcoder.jp \u4e00\u898b\u95a2\u4fc2\u306e\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u308b\u8981\u7d20\u3082\u5b9f\u969b\u306f\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u554f\u984c\u3067\u3059\u3002 package main import ( \"bufio\" \"fmt\" \"os\" \"sort\" \"strconv\" ) var sc *bufio.Scanner func nextStr() string { sc.Scan() return sc.Text() } func nextInt() int { sc.Scan() i, e := strconv.Atoi(sc.Text()) if e != nil { pa\u2026"}