#include #include using namespace std; string convert_to_quadkey(int x,int y,int depth){ string res; while (depth--) res+=char('0'+(!!(x&(1<>key; int depth=key.length(); int x=0,y=0; for (int iter=100000; iter--;){ int mutate=(1<<(rand()%depth)); if (score(x^mutate,y,depth,key)>score(x,y,depth,key)){ x^=mutate; } if (score(x,y^mutate,depth,key)>score(x,y,depth,key)){ y^=mutate; } } cout<