Math one poj 3372 contest4

#include <iostream> 
#include
<cstdio>

using namespace std;

int main()
{
int n;
while(scanf("%d", &n)!= EOF)
{
if (!(n&(n-1)))
{
printf(
"YES\n");
}
else
printf(
"NO\n");
}
}
证明:http://www.cnblogs.com/Saatgut/archive/2008/10/09/1307405.html

posted on 2011-08-04 07:21  more think, more gains  阅读(156)  评论(0编辑  收藏  举报

导航