摘要:
#include #include #include #include #include #include #include #include #define pb push_back #define ll long long #define fi first #define se second #define PI 3.14159265 #define ls l,m,rt typedef un... 阅读全文
摘要:
题目链接:D. Kuro and GCD and XOR and SUM 题意:两种操作:第一种给数组添加一个数,第二种输入x,k,s,要求从数组中找到一个数v,要求k能整除gcd(k,v);并且v<=s-x,然后异或v与k的异或值最大。 题解:对与k大于1的情况我们暴力枚举过去,k为1的特殊处理建 阅读全文