首页 > 牛牛想起飞
头像 女王你好痞
发表于 2021-01-01 14:45:42
a数组的元素无论加减b元素,a的原数不变,先对a数组求和 再从b中挑取0-n个元素即可。 为什么开205的数组?因为b中几个数的算术和可能为负,即所有算术和在(-100,100)范围。 #include <bits stdc++.h> using namespace std; typed 展开全文
头像 呃呃。
发表于 2021-01-01 17:09:40
牛牛想起飞用bitset来记录可以得到的数,然后求得值为1的最高位就是答案 #include <bits/stdc++.h> using namespace std; #define Happy return #define New_Year 0 const int N = 1e5+5; 展开全文

等你来战

查看全部