{"image_url":null,"provider_name":"Hatena Blog","blog_title":"\u66ae\u3089\u3057\u306e\u6280\u8853","url":"https://tech-blog.tanatana.info/entry/2014/11/07/194631","type":"rich","description":"\u306a\u3093\u304b\u30d3\u30c3\u30c8\u8868\u73fe\u306b\u5909\u3048\u3066\u6587\u5b57\u5217\u306b\u3057\u3066split\u3059\u308b\u307f\u305f\u3044\u306a\u8352\u6280\u3067\u3082\u3044\u3044\u3093\u3060\u3051\u3069\uff0c\u3061\u3083\u3093\u3068\u3057\u305f\u3089\u3053\u3046\u3044\u3046\u611f\u3058\u304b\u306a\uff0e\u5bfe\u8c61\u3068\u3059\u308b\u6570\u5024\u3092\u8868\u73fe\u3059\u308b\u306e\u306b\u4f55\u6841\u3044\u308b\u304b\u8abf\u3079\u3066\uff0c\u305d\u306e\u3046\u3048\u3067\u5404\u6841\u306e\u30de\u30b9\u30af\u3092\u683c\u7d0d\u3057\u305f\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\uff0e\u30de\u30b9\u30af\u30ea\u30b9\u30c8\u306e\u5404\u8981\u7d20\u3068\u5bfe\u8c61\u3068\u3059\u308b\u6570\u5024\u306eAND\u6f14\u7b97\u3092\u3057\u30660\u610f\u5916\u304c\u5e30\u3063\u3066\u304d\u305f\u56de\u6570\u3092\u8abf\u3079\u308b\uff0e import sys import math def createMasks(n): maskList = [] for x in range(n): maskList.append(int(math.pow(2, x))) return maskList def hasNFlags(flags, n): \u2026","categories":[],"version":"1.0","height":"190","provider_url":"https://hatena.blog","width":"100%","author_url":"https://blog.hatena.ne.jp/side_tana/","blog_url":"https://tech-blog.tanatana.info/","author_name":"side_tana","published":"2014-11-07 19:46:31","title":"python\u3067m\u500b\u306ebit\u304c\u305f\u3063\u3066\u3044\u308b\u6570\u5024\u3092n\u4ee5\u4e0b\u3067\u8abf\u3079\u308b","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech-blog.tanatana.info%2Fentry%2F2014%2F11%2F07%2F194631\" title=\"python\u3067m\u500b\u306ebit\u304c\u305f\u3063\u3066\u3044\u308b\u6570\u5024\u3092n\u4ee5\u4e0b\u3067\u8abf\u3079\u308b - \u66ae\u3089\u3057\u306e\u6280\u8853\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}