Sign in $ create-account
~/problems ~/discussion ~/contests ~/submission
← ~/problems
P2013

Decimal to Binary

Easy
// Description
Convert a non-negative decimal integer to its binary representation (without leading zeros).
// Input
A single integer n (0 <= n <= 10^9).
// Output
The binary representation of n.
// Hint
Repeatedly divide by two, or use the languages built-in conversion.
// Samples
Sample Input
10
Sample Output
1010
// Problem Info
DifficultyEasy
Acceptance50%
Time Limit1000 ms
Memory Limit65536 KB
Accepted5
Implementation
// Discussion

No Discussion