{"blog_title":"\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093\u306f\u307e\u3084\u3093","height":"190","blog_url":"https://blog.hamayanhamayan.com/","author_url":"https://blog.hatena.ne.jp/hamayanhamayan/","url":"https://blog.hamayanhamayan.com/entry/2016/08/29/234734","width":"100%","title":"Coloring Trees [Codeforces 369 : Div2 C]","version":"1.0","published":"2016-08-29 23:47:34","author_name":"hamayanhamayan","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","image_url":null,"categories":["\u7af6\u6280\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"],"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.hamayanhamayan.com%2Fentry%2F2016%2F08%2F29%2F234734\" title=\"Coloring Trees [Codeforces 369 : Div2 C] - \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>","description":"\u554f\u984c http://codeforces.com/contest/711/problem/Cn\u672c\u306e\u6728\u304c\u3042\u308b\u3002 \u3053\u308c\u3089\u306e\u6728\u3092m\u7a2e\u985e\u306e\u8272\u3067\u5857\u308b\u3002 \u6728i\u306f\u8272C[i]\u3067\u5857\u3089\u308c\u3066\u3044\u308b\u304c\u3001\u4e00\u90e8(C[i]=0\u306e\u3082\u306e)\u306f\u8272\u304c\u5857\u3089\u308c\u3066\u3044\u306a\u3044\u3002 \u5857\u3089\u308c\u3066\u3044\u306a\u3044\u6728\u306b\u8272\u3092\u5857\u3063\u3066\u3044\u304f\u306e\u3060\u304c\u3001\u6728i\u306b\u8272j\u3092\u5857\u308b\u3068\u304d\u306fp[i][j]\u306e\u30a4\u30f3\u30af\u304c\u5fc5\u8981\u3002 \u6728\u9054\u306e\u7f8e\u3057\u3055\u3092\u96a3\u308a\u5408\u3046\u8272\u304c\u540c\u3058\u6728\u3092\u307e\u3068\u3081\u305f\u6210\u5206\u6570\u3068\u5b9a\u7fa9\u3059\u308b\u3002 2,1,1,1,3,2,2,3,1,3 \u3067\u3042\u308c\u3070\u3001\u96a3\u308a\u5408\u3046\u8272\u304c\u540c\u3058\u6728\u3092\u307e\u3068\u3081\u308b\u3068 {2}, {1, 1, 1}, {3}, {2, 2}, {3}, {1}, {3} \u3068\u306a\u308a\u6210\u5206\u6570\u306f7\u306a\u306e\u3067\u3001\u7f8e\u3057\u3055\u306f7\u3053\u306e\u6642\u5857\u3089\u308c\u3066\u3044\u2026"}