今天在些寫ACM遇到這題有點搞不懂題意,也找不到中文翻譯
題目: http://0rz.tw/bY045
尤其是這個rule
- One should not be able to fill a square whose side is less than K using the tile
of (L, W) size. For example, if K = 6, you cannot use (2, 1) tile as you can fill
4x4 square with it. (The king does not like smaller replica of his room with
same size of tile).
以例子來說,意思是K=6不能用 (2, 1) tile,是因為K=4已經用過(2, 1) tile了嗎?
example也不是很懂,為什麼輸入18輸出結果會是9 2,我本來以為會是9 1的說...
謝謝各位大大耐心的看完!