{"provider_url":"https://hatena.blog","author_name":"touyou1121","published":"2011-09-14 23:21:21","width":"100%","image_url":null,"url":"https://touyoubuntu.hatenablog.com/entry/20110914/1316010081","author_url":"https://blog.hatena.ne.jp/touyou1121/","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"version":"1.0","description":"2385 \u8a18\u61b6\u55aa\u5931 #include <cstdio> int main() { int T, W; scanf(\"%d%d\", &T, &W); int tree[T]; for (int i=0; i<T; i++) scanf(\"%d\", &tree[i]); int res = 0; for (int i=0; i<T; i++) { int chn = 0; int cnt = 1; int tmp = tree[i]; for (int j=i+1; j<T && chn <= W; j++) { if (tmp != tree[j]) { chn++; tmp = tree[j]\u2026","blog_url":"https://touyoubuntu.hatenablog.com/","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftouyoubuntu.hatenablog.com%2Fentry%2F20110914%2F1316010081\" title=\"PKU\u3063\u3066\u5e73\u548c\u3060\u3088\u306d\u30fb\u30fb\u30fb - \u5922\u8ffd\u3044\u4eba\" 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":"\u5922\u8ffd\u3044\u4eba","title":"PKU\u3063\u3066\u5e73\u548c\u3060\u3088\u306d\u30fb\u30fb\u30fb","height":"190","provider_name":"Hatena Blog"}