#include using namespace std; const int Limit=3800; int N,A,B,X[15],Y[15],K[15],ans=1,start,second; short ok[15][15][15]; void dfs(int v,int p,int vis){ ans=max(ans,__builtin_popcount(vis)); clock_t t=clock(); if((start*(N-1)+second)*(Limit/N/(N-1))>t)return; for(int nxt=0;nxt=A or abs(K[j]-K[k])>=B)ok[i][j][k]=1; } } } for(int i=0;i