题目链接
Description
Little C loves number 3 very much. He loves all things about it.
Now he is playing a game on a chessboard of size nm. The cell in the x-th row and in the y-th column is called (x,y). Initially, The chessboard is empty. Each time, he…