{"provider_url":"https://hatena.blog","provider_name":"Hatena Blog","blog_title":"bouzuya.hatenablog.com","published":"2022-01-15 23:22:00","height":"190","url":"https://bouzuya.hatenablog.com/entry/2022/01/15/232200","description":"\u7b2c\u516b\u56de \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u5b9f\u6280\u691c\u5b9a (PAST) E - \u30ab\u30e9\u30d5\u30eb\u306aT\u30b7\u30e3\u30c4\u3092\u89e3\u3044\u305f\u3002 https://atcoder.jp/contests/past202109-open/tasks/past202109_e \u8272\u3054\u3068\u306b\u6700\u3082\u5b89\u3044\u3082\u306e\u4ee5\u5916\u306f\u8cb7\u3046\u5fc5\u8981\u304c\u306a\u3044\u3002\u4fa1\u683c\u306e\u5b89\u3044\u8272\u3092 K \u7a2e\u985e\u8cb7\u3048\u3070\u826f\u3044\u3002 K \u7a2e\u985e\u306b\u6e80\u305f\u306a\u3044\u3068\u304d\u306f -1 \u306b\u306a\u308b\u3002 \u307c\u304f\u306f\u8272\u3068\u4fa1\u683c\u3092 Tuple \u306b\u3057\u3066\u4fa1\u683c\u3067\u6607\u9806\u306b\u30bd\u30fc\u30c8\u3057\u3066\u8d70\u67fb\u3057\u3001\u4e00\u5ea6\u9078\u3093\u3060\u8272\u306f Set \u306b\u8ffd\u52a0\u3057\u3066\u65e2\u306b\u9078\u3093\u3067\u3044\u306a\u3044\u304b\u3001 K \u500b\u3092\u8d85\u3048\u3066\u3044\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u89e3\u3044\u305f\u3002 \u30bd\u30fc\u30c8\u3068 Set \u3078\u306e\u633f\u5165\u3092\u4f34\u3046\u8d70\u67fb\u306f\u3069\u3061\u3089\u3082 O(NlogN) \u306a\u306e\u3067\u5168\u4f53\u3068\u3057\u3066\u306f O(NlogN\u2026","author_url":"https://blog.hatena.ne.jp/bouzuya/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbouzuya.hatenablog.com%2Fentry%2F2022%2F01%2F15%2F232200\" title=\"\u7b2c\u516b\u56de \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u5b9f\u6280\u691c\u5b9a (PAST) E - \u30ab\u30e9\u30d5\u30eb\u306aT\u30b7\u30e3\u30c4\u3092\u89e3\u3044\u305f - bouzuya.hatenablog.com\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","title":"\u7b2c\u516b\u56de \u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u5b9f\u6280\u691c\u5b9a (PAST) E - \u30ab\u30e9\u30d5\u30eb\u306aT\u30b7\u30e3\u30c4\u3092\u89e3\u3044\u305f","type":"rich","width":"100%","blog_url":"https://bouzuya.hatenablog.com/","image_url":null,"author_name":"bouzuya","categories":[]}