热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_56645631
苏哈哈462
4 年前
trueweixin_56645631

#697 A
思路:如果一个数是奇数那一定有非1的奇数因子,如果一个数是偶数那么看是否是2的幂是的话则没有奇数因子否则一定会有奇数因子
#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
long long n;
scanf("%lld",&n);
if(n%2!=0)printf("YES\n");
else
{
while(n%2==0)
{
n/=2;
}
if(n==1)printf("NO\n");
else printf("YES\n");
}
}
return 0;
}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
【git】Your branch is ahead of 'origin/masterin this case I suppose master is your default(HEAD) branch. It will remove all commits which are not in this branch. git reset --hard origin/masterhttps://hashnode.com/post/i-got-your-branch-is-ahead-of-originmaster-by-2-commits-how-can-i-delete-these-two-commits-cj03i91fe001lew539y484aq3
立即登录