Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
159752 梁乃元 整数幂 C++ Accepted 100 4 MS 248 KB 299 2024-07-30 22:26:35

Tests(4/4):


# 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 ; }


Judgement Protocol: