WAR MANAGEMENT
CodeChefOpen on judge ↗
A country has chances to undergo a war with neighbouring country. It needs some rifles to strengthen its defence. You are the supplier of rifle guns- Assault rifles and Sniper rifles. assault rifles available are Ak47 , AKM, L85 and AN94 which have damage 150, 100, 80 and 120 respectively and costs 2000\$ , 1500\$ , 1200\$ and 1800\$ respectively. Sniper rifles available are MK13, M23, VSK
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