提交时间:2024-07-30 16:50:49

运行 ID: 159675

# include <bits/stdc++.h> using namespace std ; int main ( ) { int n ; cin >> n ; while ( n -- ) { double t ; cin >> t ; while ( t > 1 ) { t /= 2 ; } if ( t != 1 ) { cout << "No" << endl ; } else { cout << "Yes" << endl ; } } return 0 ; }