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.
基数 10 の数値を表す ~100 桁の文字列があり、基数 2 の数値を表す文字列、または数値の桁を 2 進数で表す bool 配列に変換します。BigInteger を使用して Java で簡単に実行できますが、C++ に同等のものがあるかどうかはわかりません。
関数は次のようになります。
文字列 toBinaryString(文字列 numInDecimal);
助けてくれてありがとう。