Problem A: QQ 堂

Time Limit: 1 Sec Memory Limit: 512 MB

Description