GUNPOINT
CodeChefOpen on judge ↗
Mr. J and Mr. K are secret gun testers, they head to a shop in Los Santos to test out the new gun. There are N barricades placed one after another, Barricade 1 being closest to the target and barricade N being the furthest. Mr. J wants to find the maximum range from which he can shoot the target with this new weapon. The shopkeeper charges money only for the bullets when someone is using the gun f
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