АВТ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

172. B-2-10

Time Limit: 2 seconds
Memory Limit:64000KB
Points:10
View Problem Statistics Submit Problem added Administrator

Задано неотрицательное целое число в двоичной системе счисления. Требуется перевести его в десятичную.

В первой строке входного файла содержится исходное число не более чем из 50 000 цифр 0 и 1 без ведущих нулей.

Выходной файл должен содержать это число в десятичной системе счисления без ведущих нулей.

Пример

STDIN

STDOUT

101

5

 


View Problem Statistics Submit Author/source:
Problems from Contests / Vologda Students Contests / IX InterUni Contest 2006 /
171. A-Matrix 172. 173. C-Minuses 174. D-Satisfability 175. E-Mars rover
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.125 sec.
© Copyright VSTU, AVT, Nosov D.A.