百度star编程赛-练习1

时间:2023-12-29 16:12:44

ztr loves math

http://acm.hdu.edu.cn/showproblem.php?pid=5675

显然:4 ^ n * (a + b) * (a -b)

#include <cstdio>

bool vet(long long t) {
if (t < && t != ) return false;
if (t % != ) return true;
return false;
} int main() {
int n;
scanf("%d", &n);
for (int i = ; i < n; ++i) {
long long t;
scanf("%lld", &t);
puts(vet(t) ? "True" : "False");
}
return ;
}