← All problemsSign in

Killjoy and matrix

In a game of Valorant, Killjoy is a defensive expert. She is famous for her grenade capabilities. Now there is a challenging map called Haven. Haven is divided into $N*N$ blocks and Killjoy want to destroy all the blocks using her grenades. She placed a grenade in each block with power $P_{ij}$ ($i$ denotes the row and $j$ denotes the column of that block). A grenade with power $y$ will not e

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