Prime Powder
CodeChefOpen on judge ↗
Today Chef buy N magical coke along with N powder from an online sell.Chef arrange all the coke bottle in a queue,each bottle have written a number on it which denotes energy contained in the coke.Number written on them are L,L+1,L+2,...R-2,R-1,R (In left to right order) .Now before drinking the coke he have to dissolve one powder in each coke,the powder have a property that if the energy containe
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