{"provider_url":"https://hatena.blog","type":"rich","author_name":"amifiable","provider_name":"Hatena Blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/154149487/1553670776372553","url":"https://ami-atcoder.hatenablog.com/entry/20190603/1559547084","title":"AtCoder ABC 128 D - equeue (Go)","published":"2019-06-03 16:31:24","categories":["\u7af6\u30d7\u30ed","AtCoder","ABC128","D\u554f\u984c","400\u70b9","Go"],"height":"190","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fami-atcoder.hatenablog.com%2Fentry%2F20190603%2F1559547084\" title=\"AtCoder ABC 128 D - equeue (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>","blog_title":"\u3042\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u306eAtCoder\u596e\u95d8\u8a18","description":"irisrune\u3067\u3059\u3002\u3053\u306e\u571f\u65e5\u306e\u30b3\u30f3\u30c6\u30b9\u30c8\u306f\u4e0d\u53c2\u52a0\u3060\u3063\u305f\u306e\u3082\u3042\u308a\u8a18\u4e8b\u306b\u3059\u308b\u306e\u306f\u9593\u306b\u5408\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002 https://atcoder.jp/contests/abc128/tasks/abc128_d \"D\"equeue\u3068\u304b\u3051\u3066\u308b\u304b\u3089D\u554f\u984c\u306a\u3093\u3067\u3059\u304b\u306d\u3002B\u3001C\u304c\u96e3\u3057\u3051\u308c\u3070D\u3082\u96e3\u3057\u3044\u3068\u304d\u307e\u3057\u305f\u3002\u52b9\u7387\u306e\u826f\u3044\u65b9\u6cd5\u3092\u63a2\u305d\u3046\u3068\u3059\u308b\u3068\u30c9\u30c4\u30dc\u306b\u306f\u307e\u308a\u305d\u3046\u306a\u554f\u984c\u3067\u3059\u3002 package main import ( \"bufio\" \"fmt\" \"os\" \"sort\" \"strconv\" ) var sc *bufio.Scanner func nextInt() int { sc.Scan() i, e := s\u2026","author_url":"https://blog.hatena.ne.jp/amifiable/","width":"100%","blog_url":"https://ami-atcoder.hatenablog.com/"}