0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 17:56:28 +00:00

T206731 A 质因数

R67382896
This commit is contained in:
Baoshuo Ren 2022-01-21 14:33:01 +08:00
parent a076967f79
commit 2d2d74d42e
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

22
Luogu/T206731/T206731.cpp Normal file
View File

@ -0,0 +1,22 @@
#include <cmath>
#include <iostream>
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;
}