B - Base 2 Editorial by evima
Another SolutionIf the standard library of your language has a function to convert binary numbers to decimal, you can use it by concatenating the input in reverse order.
Sample Implementation (Python)
A = input().split()
print(int(''.join(reversed(A)), 2))
posted:
last update: