Type: Default 1000ms 256MiB

只因子

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目背景

给你一个整数nn判断nn是否有大于1的奇数因子

数据范围

1T1041 \leq T \leq 10^4

2n10142 \leq n \leq 10^{14}

输入

第一行一个数字T表示有T组数据

随后T行每行一个数字n判断其否有大于1的奇数因子

输出

如果nn有大于1的奇数因子则输出"YES"

否则输出"NO"

样例

6
2
3
4
5
998244353
1099511627776
NO
YES
NO
YES
YES
NO

样例解释

没啥好解释的,注意看看数据范围

新生周赛第四场(DIV. 3)

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
6
Start at
2022-10-24 20:00
End at
2022-10-24 21:42
Duration
1.7 hour(s)
Host
Partic.
38