Lucky Army
CodeChefOpen on judge ↗
LUCKY ARMY A General is planning to attack one of its neighbouring country. The country that he is going to attack is undefeated till date. So he went to his priest and asked for his help. The priest told him that the only chance he can win the battle is by creating an army that only contain the soldiers having id numbers which are multiple of 7 as 7 is the lucky number for General and his a
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