{"blog_url":"https://pytran.hateblo.jp/","width":"100%","version":"1.0","type":"rich","image_url":null,"url":"https://pytran.hateblo.jp/entry/2019/07/16/195717","published":"2019-07-16 19:57:17","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpytran.hateblo.jp%2Fentry%2F2019%2F07%2F16%2F195717\" title=\"\u96a3\u5408\u3046bit\u306e\u30c1\u30a7\u30c3\u30af - \u30a6\u30db\u30a6\u30db\u30b4\u30ea\u30e9\u30c3\u30db\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","description":"\u5b9f\u88c5\u4f8b Misteer\u3055\u3093\u306e\u30b3\u30fc\u30c9\u3092\u773a\u3081\u3066\u305f\u3089\u8ce2\u3044\u3068\u601d\u3063\u305f\u306e\u3067\u8a18\u9332\u3002 i\u756a\u76ee\u3068i+1\u756a\u76ee\u306ebit\u304c\u7acb\u3063\u3066\u3044\u308b\u3053\u3068\u72ec\u7acb\u306b\u3084\u308b\u306e\u3067\u306f\u306a\u304f(b >> i) % 4 == 3\u3067\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002\u8ce2\u3044\u3002 \u203b \u5143\u30b3\u30fc\u30c9\u3060\u3068validation\u3060\u3051\u3069\u52a0\u7b97\u306b\u66f8\u304d\u63db\u3048\u3066\u3044\u308b\u3002 int w = 8; int sum = 0; for (int b = 0; b < (1 << (w - 1)); ++b) { for (int i = 0; i < w - 2; ++i) { if ((b >> i) % 4 == 3) sum++; } } Submission #3536111 - AtCoder Beginne\u2026","title":"\u96a3\u5408\u3046bit\u306e\u30c1\u30a7\u30c3\u30af","categories":["C++","\u7af6\u30d7\u30ed"],"height":"190","blog_title":"\u30a6\u30db\u30a6\u30db\u30b4\u30ea\u30e9\u30c3\u30db","author_name":"pytran","author_url":"https://blog.hatena.ne.jp/pytran/"}