HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Pactice #2 > problem:


2. The power of 2

Pactice #2

Start: Sep.29.2016 at 01:46:18 PM
Finish: Sep.29.2016 at 05:00:18 PM
The contest is finished!
• Contest scoreboard

Contest problems

• 1. Factorial
• 2. The power of 2
• 3. How many digits?
• 4. How many divisors?

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Given a single integer N. Write a program that outputs YES if N is a power of 2, and NO otherwise.

standart input standart output
8
YES
22 NO

Для отправки решений необходимо выполнить вход.

www.contester.ru