← All problemsSign in

Rectangular Tiling

CodeChefRating 1182Open on judge ↗

You have a rectangular floor $R$ with width $W$ and length $L$. You want to tile this floor with some rectangular tiles - $R_1, R_2, \ldots, R_k$, where $k$ is any integer $\ge 1$. But you want to tile it such that for $i$, $1 \leq i \leq k$, the width and height of $R_i$ is a positive integer, and $R_i$ has a perimeter which isn't divisible by $4$. \ Note that different tiles can have different

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start