{"url":"https://h-chiro.hatenablog.com/entry/20101103/1288799269","categories":["PKU"],"version":"1.0","provider_url":"https://hatena.blog","blog_title":"\u96d1\u8a18","description":"http://poj.org/problem?id=3543 \u6982\u8981 \u9ed2\u306e\u30bf\u30a4\u30eb\u3068\u767d\u306e\u30bf\u30a4\u30eb\u304c\u4e0e\u3048\u3089\u308c\u308b\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u4f7f\u3063\u3066\u4f5c\u308b\u3053\u3068\u306e\u3067\u304d\u308b \u5e02\u677e\u6a21\u69d8\u306e\u6b63\u65b9\u5f62\u306e\u6700\u5927\u30b5\u30a4\u30ba\u3092\u6c42\u3081\u308b\u3002 \u65b9\u91dd \u6b63\u65b9\u5f62\u306e\u30b5\u30a4\u30ba = l\u306b\u5bfe\u3057\u3066 l\u304c\u5076\u6570 -> w >= l^2/2 && b >= l^2/2\u304c\u5fc5\u8981l\u304c\u5947\u6570 -> min(b,w) >= l*ceil(l/2) + ceil(l/2) max(b,w) >= l*ceil(l/2) + ceil(l/2) + 1 \u304c\u5fc5\u8981\u306a\u306f\u305a\u30fb\u30fb\u30fb \u30bd\u30fc\u30b9 #include<iostream> using namespace std; int main(){ int b,\u2026","blog_url":"https://h-chiro.hatenablog.com/","title":" 3543 iChess","author_name":"h_chiro","published":"2010-11-03 00:47:49","provider_name":"Hatena Blog","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fh-chiro.hatenablog.com%2Fentry%2F20101103%2F1288799269\" title=\" 3543 iChess - \u96d1\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_url":"https://blog.hatena.ne.jp/h_chiro/","type":"rich","image_url":null}