spoj#MAHJONG. Fudan Extracurricular Lives

Fudan Extracurricular Lives

Click here to get the PDF version of this problem. It seems that the style of this problem is the same as problem TRACTOR added by me about 2 years ago, but this one is far easier than that one. This problem is solved by a team at 286 minutes after the real-time contest start.