← All problemsSign in

Karate Kid

Dre is a karate student. To achieve his next belt, he has to give a test. Dre wants to check if he can pass the test or not. He needs your help in determining so. His strength is $S$. In the test, Dre has to break $N$ tiles where the width of each tile is $W$. Strength of a tile can be calculated by multiplying its width by a factor $X$. Dre can break the tiles if his strength is greater than or

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