2561 - I2P(I)2022_Hu_Lab3 Scoreboard

Time

2022/10/03 18:30:00 2022/10/03 20:30:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
13587 To Binary (II)
13589 little kai's treat

13587 - To Binary (II)   

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.

Sample Input  Download

Sample Output  Download

Tags




Discuss




13589 - little kai's treat   

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 = 1+ 5+ 33

370, because 370 = 3+ 7+ 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