Problem Description

Convert a binary string to decimal.

Input Format

One token b (only 0/1).

Output Format

One integer.

Sample Test Case

Input:
10101
Output:
21

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next