摘要:
离线思想(把指令存起来后从后往前遍历) #include<stdio.h> const int maxn=1e5+7; int a[maxn]; int p[maxn]; int v[maxn]; int main() { int n,m; scanf("%d%d",&n,&m); for(int 阅读全文
posted @ 2021-08-23 20:45
废柴废柴少女
阅读(34)
评论(0)
推荐(0)
摘要:
要用long long 输入 题目中这个If the value of the expression is 0 when C=0, please print 1.的意思是如果a&b==0了的时候输出1 其他的都是输出(a&b) 0 1 0 1 0 1 1 0 只用管两者都是1的时候让c的那一位为1 阅读全文
posted @ 2021-08-23 19:09
废柴废柴少女
阅读(66)
评论(0)
推荐(0)
摘要:
题目:https://acm.hdu.edu.cn/showproblem.php?pid=6892根据sg定理,只需要求出每个数的sg[x];对于一个数x,如果是1是必败,sg[1]=0;如果是质数,那么必胜,sg[质数]=1;其他的则将x分解成若干对非1因数(p1,q1,p2,q2,p3,q3. 阅读全文
posted @ 2021-08-23 16:40
废柴废柴少女
阅读(44)
评论(0)
推荐(0)
浙公网安备 33010602011771号