提交时间:2024-08-19 17:08:02

运行 ID: 167648

#include <bits/stdc++.h> using namespace std; int n, t; long long flag = 1, ans = 0; int main(){ cin >> n; while(n--){ cin >> t; while(flag){ if(flag & t){ ans++; if(ans > 2){ break; } } flag = flag << 1; } if(ans == n || n == 1){ cout << "no" << endl; } else { cout << "yes" << endl; } } }