← All problemsSign in

A - Tom & mouse traps

It’s monday evening and as usual tom is applying new methods to catch jerry. Today he is trying to build mouse traps which he will place all over the house. To build a mousetrap he needs a metal sheet. He needs to build $N$ number of such traps. Unfortunately the shop that keeps these metal sheets, bundles them in boxes and sells them as a whole, each box contains $K$ sheets (eg: if a box

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