0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-14 03:18:48 +00:00
OI-codes/Luogu/T206731/T206731.cpp

23 lines
366 B
C++
Raw Normal View History

2022-01-21 06:33:01 +00:00
#include <iostream>
2022-06-01 01:45:41 +00:00
#include <cmath>
2022-01-21 06:33:01 +00:00
using std::cin;
using std::cout;
using std::endl;
int t;
long long n;
int main() {
cin >> t;
while (t--) {
cin >> n;
if (floor(log2(n)) == log2(n) || floor(log2(n / 3.0)) == log2(n / 3.0)) {
cout << 0 << endl;
} else {
cout << 1 << endl;
}
}
return 0;
}