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.
私は 2 進数を持っており、その 2 進数を Decimal として表すときに、その 2 進数が数値のどこかに 0を持っているかどうかを知る必要があります。
したがって、文字列などに変換することはできません。
それをバイナリのように扱い、そこから検出する方法が必要です。
例えば
10111100101 = 1509 101111001011 = 3019
それらの0を検出する必要があります
ありがとう!