Mediummathstrings
Decimal to Binary
Time limit 2 s · Memory 64 MBAcceptance: —Solved by: 0
Statement
You are given a non-negative integer n. Print it in binary without leading zeros. For zero print "0".
Examples
Example 1
Input
5
Output
101
Example 2
Input
0
Output
0
Constraints
- 0 ≤ n ≤ 10^18