| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 13589 | little kai's treat |
|
| 13587 | To Binary (II) |
|
Description
Little kai the shitzu really like treats. To get a treat he must do a trick.

Being the smart boy he is, his mama wants him to figure out whether a number is a special number.
A special number is a number whose sum of its digits cubed is equal to the number itself.
For example:
0, because 0 = 03
1, because 1 = 13
153, because 153 = 13 + 53 + 33
370, because 370 = 33 + 73 + 03
Input
Commands separated by a newline character.
Note that:
Each command is a positive integer n
0 < n <1000
Output
If it is a special number, output "Yes it is."
If not, output "No it is not."
You need to print a newline character at the end of each line. ('\n')
Sample Input Download
Sample Output Download
Tags
Discuss
Description
Given a nonnegative decimal number, please convert it to a binary representation.
For example, given 3, please print 11; given 16, please print 10000.
Hint:
We need 31 bit to represent all the nonnegative integer.
Input
A nonnegative decimal integer D.
Output
A binary presentation of D.
Note that you have to print "\n" in the end.