Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
unsignedcharビットマップRep[8192]が与えられた場合、すべての「1」ビットの位置を効率的に見つける方法は?ありがとう。
宿題?
ヒント-各バイトのルックアップテーブル
「見つける」とはどういう意味ですか?
これは賢い答えのように思えるかもしれませんが、私は完全に真剣です。あなたはすでにそれらを見つけています。すべての1ビットがどこにあるかを正確に説明する完璧なマップがあり、対応する位置にビットが設定されています。