by@yamayu832
AC
// your code goes here s = stdIn().grabLine() i = 0 bin = arrayBuffer(100) dec = arrayBuffer(33) while i < 100 if s[i] == "0" bin[i] = 0 else bin[i] = 1 end i++ end i = 0 while i < 33 rem = 0 j = 0 while j < 100 rem *= 2 rem += bin[j] bin[j] = int(rem / 10) rem %= 10 j++ end dec[i] = rem i++ end i = 32 str = "" while i >= 0 str += dec[i] i-- end printl(str)
1000000111101001100001010101000101100101110101111111000101000110010011100110011011101101000101100011
000643294008947053015977268531555