{"image_url":null,"title":"Green Bin [AtCoder Beginner Contest 137 C]\n","provider_name":"Hatena Blog","width":"100%","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","author_name":"hamayanhamayan","published":"2019-08-14 13:12:11","version":"1.0","categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","blog_url":"https://blog.hamayanhamayan.com/","type":"rich","height":"190","url":"https://blog.hamayanhamayan.com/entry/2019/08/14/131211","description":"https://atcoder.jp/contests/abc137/tasks/abc137_c \u89e3\u8aac https://atcoder.jp/contests/abc137/submissions/6894331 s[i]\u304cs[j]\u306e\u30a2\u30ca\u30b0\u30e9\u30e0\u3067\u3042\u308b \u21d4 \u30bd\u30fc\u30c8\u6e08\u307fs[i]\u3068\u30bd\u30fc\u30c8\u6e08\u307fs[j]\u304c\u7b49\u3057\u3044 \u3053\u308c\u3092\u5229\u7528\u3059\u308b\u3002 \u3053\u308c\u3092\u8003\u3048\u308b\u3068\u3001s[i]\u3092\u30bd\u30fc\u30c8\u3057\u3066\u3001\u540c\u3058\u3082\u306e\u306f\u30ab\u30a6\u30f3\u30c8\u3057\u3066\u3044\u304f\u3002 \u540c\u3058\u3082\u306e\u306e\u4e2d\u3067\u4efb\u610f\u306e2\u3064\u304c\u30a2\u30ca\u30b0\u30e9\u30e0\u95a2\u4fc2\u306b\u3042\u308b\u306e\u3067\u3001C(\u305d\u306e\u500b\u6570,2)\u304c\u6761\u4ef6\u3092\u6e80\u305f\u3059\u7d44\u307f\u5408\u308f\u305b\u306b\u306a\u308b\u3002 \u3053\u308c\u3092\u3059\u3079\u3066\u306e\u30bd\u30fc\u30c8\u6e08\u307fs[i]\u306b\u3064\u3044\u3066\u884c\u3044\u3001cnt*(cnt-1)/2\u306e\u7dcf\u548c\u3092\u53d6\u308c\u3070\u7b54\u3048\u3002 int N\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2019%2F08%2F14%2F131211\" title=\"Green Bin [AtCoder Beginner Contest 137 C]\n - \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>","provider_url":"https://hatena.blog"}