Cracker
CodeChefOpen on judge ↗
Sidhant, an enthusiastic cricket fan went to a cracker shop to purchase crackers for his children. He wants to purchase crackers for each of his X kids. He asks each of his kids to select the crackers they want. Each kid selects a block of crackers from the shop numbered 1 to N such that each type of cracker in the block has same quantity. When the shopkeeper is preparing the bill, he asks his e
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