Problem list
Log in
#r03110 · Online Judge > GoldOJ

Decimal to Binary

Bronze II 2.0 s 256 MB

Given a decimal integer $n$, print its binary representation (no leading zeros; $0$ prints as 0).

Input

One integer $n$ ($0 \le n \le 2100000000$).

Output

Print $n$ in base 2.

Example 1

Input
7
Output
111

Example 2

Input
0
Output
0
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code