/* [NWERC'07] TOWER PARKING by: Jan Kuipers */ using namespace std; #include #include const int Telev = 10; const int Tbelt = 5; int main () { int runs; cin>>runs; while (runs--) { int Y,X; cin>>Y>>X; vector xi(Y*X), yi(Y*X); int N=0; for (int y=0; y>n; N>?=n--; if (n>=0) xi[n]=x, yi[n]=y; } long long res=0; vector pos(Y, 0); for (int i=0; i