{"author_url":"https://blog.hatena.ne.jp/nishiohirokazu/","width":"100%","author_name":"nishiohirokazu","description":"\u6b63\u306e\u6574\u6570x\u3068k\u3092\u4e0e\u3048\u308b\u306e\u3067x + y = x | y \u3068\u306a\u308b\u3088\u3046\u306ay\u306e\u3046\u3061\u5c0f\u3055\u3044\u65b9\u304b\u3089k\u756a\u76ee\u306e\u3082\u306e\u3092\u7b54\u3048\u306a\u3055\u3044\u3001\u3068\u3044\u3046\u554f\u984c\u3002(\u8aac\u660e\u304c\u697d\u306a\u554f\u984c\u3060\uff01)x | y\u304cx + y\u306b\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u8981\u3059\u308b\u306bx & y == 0\u3068\u3044\u3046\u3053\u3068\u3060\u304b\u3089\u3001x\u3068k\u3092\u4e21\u65b92\u9032\u6570\u3067\u8868\u73fe\u3057\u3066x\u304c1\u306e\u6240\u306b0\u3092\u633f\u5165\u3057\u305fk\u3092\u4f5c\u308c\u3070\u3044\u3044\u3002\u56f3\u3067\u66f8\u304f\u3068x=5, k=3\u306e\u3068\u304d k = 1 1 x = 0 1 0 1 y = 1 1\u3068\u3044\u3046\u308f\u3051\u3067\u3053\u3093\u306a\u611f\u3058\u306e\u30b3\u30fc\u30c9\u306b\u306a\u3063\u305f\u3002\u81ea\u4f5c\u30e9\u30a4\u30d6\u30e9\u30ea\u304b\u3089\u6574\u6570\u3092\u4e8c\u9032\u6570\u306evector\u306b\u3059\u308b\u95a2\u6570to_bin\u3092\u30b3\u30d4\u30fc\u3057\u305f\u3002 vector<int> to_bin(int N){ vector<int> buf; w\u2026","url":"https://nishiohirokazu.hatenadiary.org/entry/20081220/1229801566","published":"2008-12-20 04:32:46","categories":["TopCoder"],"title":" Single Round Match 430 (Div1/250point)","image_url":null,"blog_url":"https://nishiohirokazu.hatenadiary.org/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnishiohirokazu.hatenadiary.org%2Fentry%2F20081220%2F1229801566\" title=\" Single Round Match 430 (Div1/250point) - \u897f\u5c3e\u6cf0\u548c\u306e\u306f\u3066\u306a\u30c0\u30a4\u30a2\u30ea\u30fc\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","height":"190","version":"1.0","provider_url":"https://hatena.blog","blog_title":"\u897f\u5c3e\u6cf0\u548c\u306e\u306f\u3066\u306a\u30c0\u30a4\u30a2\u30ea\u30fc","type":"rich"}