← All problemsSign in

Gunman and shots

There are $n$ houses in Hokoshira,a gunman enters the town and wants to destroy the town.But the thing is that,he is blind so he has no idea where he is shooting at. Gunman has infinite supply of bullets. Each House in Hokoshira has some gold-numbers. As he is blind he has no idea where the bullets are being fired. He knows only few things:- 1. In each round,he fires two bullets randomly.Each bul

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start