Problem 1

3.5

4 votes
Problem

A notice on the notice board read:

“Is there an end to it?

While the number remains greater than one, if 2 divides the number completely, divide the number by 2; while the number remains greater than 1, if the number is not divisible by 2 , multiply the successor of the number by 3 and increment this by three. "

David starts off with a number a wonders if there is an end to it?

Input – a single integer

Output - “Yes” if the program will end, “No” otherwise (quotes for clarity only)

Sample Input: 17 Sample Output: No

Time Limit: 5
Memory Limit: 256
Source Limit:
Editor Image

?