Descriptionバイナリを10進数に変換するコンピュータサイエンスの分野では、数値をバイナリ形式で表すことがよくあります。今回の課題では、入力からバイナリ文字列を受け取り、それを10進数(base-10)で出力するプログラムを作成してください。入力入力は1行のみで、0と1から成る文字列 s (1 ≤ |s| ≤ 31) を含みます。出力与えられたバイナリ文字列に対応する10進数を1つ出力してください。例入力出力1015110611170100110111311ConstraintsTime limit: 1.6 secondsMemory limit: 512 MBOutput limit: 1 MBTo check your solution you need to sign inSign in to continueSign in to your accountSign in with GoogleSign in with FacebookSign in with MicrosoftSign in with emailBy continuing, you agree to our Terms of Service and Privacy Policy.