Ram and Corona
CodeChefOpen on judge ↗
Covid-19 virus has reached Simalokolo! Now Mayor Ram has to save the city! Mayor Ram has already prepared for this situation and has created Divoc-91 virus! This Divoc-91 virus can prevent Covid-19 infection! Simalokolo has $N \times M$ blocks. The blocks are numbered from $1$ to $N$ row-wise and $1$ to $M$ column-wise. Each of the block has one of the three status at the time $0$ (i.e starting
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