← All problemsSign in

XMAS Factory

Assume you're the owner of "XMAS" Factory located in Udyambag, Belagavi. This XMAS Factory is well known for producing high-quality toy cars including Christmas gifts for kids. These toy cars when turned ON moves forward and autonomously navigates. There are $M$ different types of toy cars. Each type of toy car has $N$ number cars. There are $M$ number of machines which produce cars of its cor

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