B - Base 2 解説 by evima

Another Solution

If 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))

投稿日時:
最終更新: