Room#505

Room (Editorial)

Let's calculate how many tiles can be placed in height — , and in width — . Then we can cover the entire area with \lfloor \frac{n}{k} \rfloor \times \lfloor \frac{m}{k} \rfloor tiles.