Thinking process I use a two dimension array to save the code of the highest carpet. code[x][y] represents the (x, y) point's code of the highest carpet. So the solution comes to me. What i need to do is solving the problem on how to judge the code of the highest carpet. when given (x, y), length on...