블록 게임

Problem

https://algospot.com/judge/problem/read/NUMB3RS

Idea

http://confluence.score/pages/viewpage.action?pageId=41167601