http://mkevac.livejournal.com/ ([identity profile] mkevac.livejournal.com) wrote in [personal profile] avysk 2009-10-14 09:41 am (UTC)

1. Быстрое решение

(x && x-1) == 0

2. Медленное решение

Циклы, сдвиги...

3. Не знаю

4. Не могу сейчас вспомнить, но какое-то легкое решение точно было, в гугле найдется.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting