{"title":"square869120Contest #4-B\uff1aBuildings are Colorful!","height":"190","author_url":"https://blog.hatena.ne.jp/d_tutuz/","author_name":"d_tutuz","type":"rich","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftutuz.hateblo.jp%2Fentry%2F2018%2F11%2F04%2F094249\" title=\"square869120Contest #4-B\uff1aBuildings are Colorful! - \u6570\u5b66/\u7af6\u30d7\u30ed\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_url":"https://hatena.blog","blog_title":"\u6570\u5b66/\u7af6\u30d7\u30ed\u30e1\u30e2","width":"100%","blog_url":"https://tutuz.hateblo.jp/","url":"https://tutuz.hateblo.jp/entry/2018/11/04/094249","description":"\u554f\u984c https://beta.atcoder.jp/contests/s8pc-4/tasks/s8pc_4_b N \u3064\u306e\u5efa\u7269\u304c\u3042\u308b\u3002\u305d\u308c\u305e\u308c i \u756a\u76ee\u306e\u5efa\u7269\u306f\u8272 i \u3067\u5857\u3089\u308c\u3066\u304a\u308a\u3001\u9ad8\u3055\u306f a_i \u3067\u3042\u308b\u3002\u5de6\u304b\u3089\u898b\u305f\u3068\u304d\u306b K \u8272\u4ee5\u4e0a\u306e\u5efa\u7269\u304c\u898b\u3048\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u3002 \u3044\u304f\u3064\u304b\u306e\u5efa\u7269\u306e\u9ad8\u3055\u3092\u5897\u3084\u3059\u3053\u3068\u306b\u3088\u3063\u3066 K \u8272\u4ee5\u4e0a\u898b\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u304d\u3001\u5efa\u7269\u306e\u9ad8\u3055\u3092\u5897\u3084\u3059\u6700\u5c0f\u5024\u3092\u6c42\u3081\u3088\u3002 \u300c\u5efa\u7269\u304c\u898b\u3048\u308b\u300d\u3068\u306f a_j >= a_i (j < i) \u306a\u308b j \u304c\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u3067\u3042\u308b\u3002 \u5236\u7d04 1 <= K <= N <= 15 1 <= a_i <= 109 \u8003\u3048\u65b9 \u5236\u7d04\u304b\u3089 {a_N} \u306b\u3064\u3044\u3066 2N \u3067\u5168\u63a2\u2026","published":"2018-11-04 09:42:49","version":"1.0","categories":[]}