Covid Sampling (Challenge)
CodeChefOpen on judge ↗
**This is an interactive problem.** You are given the task of finding people infected with COVID-19 among the whole population. There are a total of $N^2$ people and they are standing in a $N \times N$ matrix, one person per cell. Formally, for each $i$ ($1 \le i \le N$) and $j$ ($1 \le j \le N$), let's denote $A_{i, j} = 1$ if the person standing in the $i$-th row and $j$-th column of the m
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