There were n types of swords in the theater basement which had been used during the plays. Moreover there were exactly x swords of each type. y people have brok...
题意描述给定n个数字,求sum-b的最小值思路每个数字都有选和不选两种思路,所以可以直接dfsAC代码#include<bits/stdc++.h>#define x first#define y second#define IOS ios::sync_with_stdio(false);cin.tie......
Memphis loves xor very musch.Now he gets an array A.The length of A is n.Now he wants to know the sum of all (lowbit(Ai xor Aj)) (i,j∈[1,n]) We define that low...
Lee just became Master in Codeforces, and so, he went out to buy some gifts for his friends. He bought n integers, now it’s time to distribute them between his ...