Magic Board
CodeChefOpen on judge ↗
Young Alex was playing alone on the upper floor of his family house when he accidentally found a dusty magic board set in some old and rusty chest. The board is a rectangle of size $n \times m$. He also finds a collection of tiles each containing a single decimal digit [ie. 0 to 9]. You may assume that there are at least $n \times m$ tiles for each particular digit. There is also a manual lying n
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.
Sign in to chat with the tutor and save your progress.
Sign in to start