Problem 5 - Stamp Out Holes
CodeChefOpen on judge ↗
Professor Plum is somewhat compulsive about postage stamps. When he travels, he likes to mail home souvenirs from the road. Before leaving for MICS, he packed his postage scale and filled his pocket with a hand full of stamps from home. As he drives the van, he wants you to inventory his stamps and write a program to determine how many amounts between 0 and the total of all his stamps can’t be
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