~/algor $ cat duels/550
Duel #550
A 1v1 battle on the problem «Binary to decimal».
Winner: Malika Sharipova
The winner was the first to solve it correctly — in 1 min 41 s.
Binary to decimal
A number $n$ written in the binary numeral system is given (it consists only of the digits $0$ and $1$). Convert it to decimal: the last digit is multiplied by $2^{0}$, the one before it by $2^{1}$, the next by $2^{2}$ and so on, and everything is added up.
$$1011_{2} = 1 * 2^{3} + 0 * 2^{2} + 1 * 2^{1} + 1 * 2^{0} = 11$$
Sample tests
1011
11
100000
32
Battle results compared
1v1 reportSubmission timeline (1)
All submissionsMalika Sharipova won
The 1v1 battle ended after a hard fight.
1v1 DUEL IS STARTING
Loading the arena...