/* [NKP'05] Tafeltjes door: Jan Kuipers */ using namespace std; #include #include const int M = 22; const int dx[2][3] = { { 1,-1, 1 }, { 1,-1,-1 } }; const int dy[2][3] = { { 0, 0,-1 }, { 0, 0, 1 } }; int N,num,cnt; int isfree[M][M]; bool isok (int x, int y, int x1, int y1, int x2, int y2) { if (y1==y2) return false; if (max(y1,y2)y) return false; return ((y2-y)*x1 + (y-y1)*x2)/(y2-y1) < x; } void go (int dep) { if (dep == num/3) { cnt++; return; } int best=99, bestx=-1, besty=-1; for (int x1=0; x1> runs; while (runs--) { cin >> N; vector x(N), y(N); for (int i=0; i> tmp; x[i] = 3*(tmp/100); y[i] = 3*(tmp%100/10); } for (int i=0; i