不平凡的数(num)
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.
Description
如果一个正整数 能够被表示成 的形式( 都是 非负整数),则称 是不平凡的。
给出 个正整数,请判断这 个正整数是不是不平凡的。
Format
Input
第一行一个正整数 ;
接下来 行,每行一个正整数 ,表示一次查询。
Output
输出共 行,每一行代表一次询问的结果。对于每次询问,如果 是不平凡的,输出 YES,否则输出 NO。
Samples
3
2
3
4
NO
YES
YES
Limitation
【样例解释】
,。
【数据范围】
对于 的数据,;
对于 的数据,;
对于另外 的数据, 是奇数;
对于 的数据,,。
开学摸底小测
- Status
- Done
- Rule
- IOI
- Problem
- 4
- Start at
- 2026-3-7 9:30
- End at
- 2026-3-7 11:30
- Duration
- 2 hour(s)
- Host
- Partic.
- 21