Идёт турнир! | В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.
|
|
imesecan | 26.фев.2011 в 20:31:58 | |
0 | All powers of 2 are even numbers except 2^0=1;
Thus, we can continuously divide the number by two while it's greater than 1, on any stage, if it becomes an odd number then we can say that it's not a power of two.
If it becomes equal to 1 in the end, it's a power of 2.
|
imesecan | 27.окт.2013 в 22:19:53 | |
1 | Реплика удалена
|
|