12952 - Integer to Binary Conversion
|
Time |
Memory |
| Case 1 |
1 sec |
32 MB |
| Case 2 |
1 sec |
32 MB |
| Case 3 |
1 sec |
32 MB |
| Case 4 |
1 sec |
32 MB |
| Case 5 |
1 sec |
32 MB |
| Case 6 |
1 sec |
32 MB |
| Case 7 |
1 sec |
32 MB |
Description
Given a nonnegative integer n>=0, print the binary representation of n.
If the user’s input is invalid, output “invalid\n”.
Input
Positive Integer
Output
Positive Integer, with combinations of 1s and 0s along with a linebreak.
Tags