提交时间:2024-08-19 21:53:30

运行 ID: 168026

#include <bits/stdc++.h> using namespace std; int a[1005]; bool pd = false; int main() { int t; cin >> t; for (int i = 1;i <= t;++i) { cin >> a[i]; } for (int i = 1;i <= t;++i) { if (pow(2,a[i]) == a[i]) { pd = true; } } if(pd == false) { cout << "Yes" << endl; } else { cout << "No" << endl; } }