spoj#TETRIS2D. Exciting Time

Exciting Time

Please click here to download a PDF version of the contest problems. The problem is problem E in the PDF.