标签:
http://acm.hdu.edu.cn/showproblem.php?pid=5675
显然:4 ^ n * (a + b) * (a -b)
#include <cstdio> bool vet(long long t) { if (t < 5 && t != 3) return false; if (t % 4 != 2) return true; return false; } int main() { int n; scanf("%d", &n); for (int i = 0; i < n; ++i) { long long t; scanf("%lld", &t); puts(vet(t) ? "True" : "False"); } return 0; }
标签:
原文地址:http://www.cnblogs.com/fripside/p/5463961.html