Discount
CodeChefOpen on judge ↗
In a supermarket on the occasion of New Year, they are giving special discounts to their customers. The discount value on every bill is calculated with a special formula applied to a billing ID that is designed by the store owner Krishna he calls it a magic number. The calculation of the magic number is as follows: First Krishna finds the last digit of the bill ID, if the number is odd then all th
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