提交时间:2023-08-21 23:18:39

运行 ID: 99093

#include <stdio.h> int main() { int t; long long n; scanf("%d", &t); while (t--) { scanf("%lld", &n); if(n==5){ puts("yes"); continue; } if (n < 4 || n & 1) { puts("no"); continue; } while (!(n & 1)) n >>= 1; n--; if (n & (n - 1)) printf("no\n"); else printf("yes\n"); } return 0; }