2的幂次方

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.

题目描述

检测n是否是2的幂次方

输入格式

第一行有一个整数,m 第二行有m个整数

输出格式

m行,判断是否是 2 的幂次方,如果是则输出YES,否则输出NO

样例

样例输入:

2 
1 
2

样例输出:

YES    
YES

数据范围与提示

long long范围内

第七届SWPU-ACM新生预选赛

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
103
Start at
2022-9-19 14:00
End at
2022-10-28 14:00
Duration
936 hour(s)
Host
Partic.
58