report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Binary to decimal - MarisaOJ: Marisa Online Judge

Binary to decimal

Time limit: 1000 ms
Memory limit: 256 MB
Given an integer $n$ in binary representation, convert it to decimal representation. ### Input - A single line contains an integer $n$ in binary representation. ### Output - Print the decimal representation of $n$. ### Constraints - It is guaranteed that the decimal representation of $n$ is a positive integer that does not exceed $2^{31}-1$. ### Example Input: ``` 110 ``` Output: ``` 6 ```
Loop
Loop
Even numbers
Factorial
Star Triangle
Folding paper
Fraction
Divisors
Complex Exponentiation
Prime number
Digit Sum
Fibonacci
Read number till eternity
Extremal
Reverse
Mushroom exchanging
Trailing zeros
Decimal to binary
Binary to decimal
Division
Solution
Topic
Basic
Rating 800
Solution (1) Solution