摘要:
题目链接:https://atcoder.jp/contests/abc406/tasks/abc406_d 题意: 爆二维矩阵的操作题,用map<int,set>r,c;存 int h,w,n; int a[maxn]; int b[maxn]; map<int,set<int>>r,c; voi 阅读全文
摘要:
题目链接:https://ac.nowcoder.com/acm/contest/109080/F 题意: 规定f运算f(x,y)=x+y- x xor y 给定q次循环,求[l,r]范围内数组进行f运算结果 思路: 需要知道 x+y= x xor y + (x&y)<<1 那么f(x,y)= (x 阅读全文