// TFlip.cc //ecna 2009 //problem D - FLipper #include using namespace std; const int MAX = 101; int R, L, n; // R = pos of right pile, L = pos of left pile int Piles[MAX][MAX]; int UpDown[MAX]; // for debugging void PrintInfo(){ cout<-1;k--) cout<-1;k--) cout<>C; if (C == 'U') UpDown[i] = 1; // 1 = up else UpDown[i] = -1; // -1 = down } } // for debugging void PrintPile(){ cout<<"L="<> n; while(n>0){ InitPiles(); DoFlips(); cout<<"Pile "<>n; } return 0; }