#P0041. 十进制转二进制

十进制转二进制

1. Description

Decimal to Binary

Write a program that reads a non-negative integer, converts it to the corresponding binary string (without 0b prefix), and outputs the string.

2. Input & Output

Input:

  • A non-negative integer
  • Use input() for reading. Note the input is a string and should be converted to integer

Output:

  • A binary string (containing only 0s and 1s)
  • Use print() for output

Example

# Input: 
0
# Output: 
0
# Input: 
10
# Output: 
1010
# Input: 
4759
# Output: 
1001010010111