{"provider_name":"Hatena Blog","author_name":"moistx","published":"2014-08-28 17:59:41","width":"100%","author_url":"https://blog.hatena.ne.jp/moistx/","version":"1.0","url":"https://logfiles.hatenablog.com/entry/20140828/1409216381","height":"190","categories":["UVa"],"image_url":null,"blog_title":"Logfiles","description":"\u554f\u984c \u9996\u90fd(\u30ce\u30fc\u30c91)\u304b\u3089\u4ed6\u306e\u90fd\u5e02(\u30ce\u30fc\u30c92\u301cn)\u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u3088\u3046\u306b\u8fba\u3092\u5efa\u8a2d\u3059\u308b\u3002\u5404\u8fba\u306b\u5efa\u8a2d\u30b3\u30b9\u30c8\u304c\u3042\u308a\u3001\u5efa\u8a2d\u306b\u4f7f\u3048\u308b\u7dcf\u30b3\u30b9\u30c8\u306f K \u4ee5\u5185\u306b\u53ce\u3081\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u5404\u30ce\u30fc\u30c9\u306b\u4eba\u53e3\u304c\u4e0e\u3048\u3089\u308c\u308b\u306e\u3067\u3001\u9996\u90fd\u306b\u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u4eba\u53e3\u3092\u6700\u5927\u5316\u305b\u3088\u3002\u89e3\u6cd5 \u30a2\u30af\u30bb\u30b9\u53ef\u80fd\u306a\u30ce\u30fc\u30c9\u3092\u30d3\u30c3\u30c8\u3067\u6301\u3061\u3001\u305d\u306e\u30d3\u30c3\u30c8\u306e\u72b6\u614b\u3092\u30ce\u30fc\u30c9\u3068\u3057\u305f\u30b0\u30e9\u30d5\u4e0a\u3092\u30c0\u30a4\u30af\u30b9\u30c8\u30e9\u3059\u308b\u3002 #include <iostream> #include <algorithm> #include <queue> using namespace std; #define MAX_N (1000) #define INF (1<<29) int N, M, K; \u2026","provider_url":"https://hatena.blog","blog_url":"https://logfiles.hatenablog.com/","title":"UVa12527 Kingdoms","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140828%2F1409216381\" title=\"UVa12527 Kingdoms - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}