Codeforces 1257F MakeThemSimilar(Meet-in-the-middle+Trie(hash|map))
老套路了,可我DFS挂了。
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e3+5;
const int maxnode= 3300005;
int n;
int a[maxn];
int mp[maxn][32];
int bit[maxn],b[m...
原创
2019-11-16 12:38:05 ·
245 阅读 ·
0 评论