← All problemsSign in

C - Odd Jobs and Yoshiwara

Yoshiwara is a land whose layout is in the form of $N \times N$ matrix and each cell in the matrix corresponds to one city in the land. Cells are numbered from $1$ to $N$ from top to bottom and also from left to right. Gintoki , Sinpachi , Sadaharu & Kagura are here to free this land from the oppressive rule of the evil Housen. Each of the cities( i.e cells) will have some information with value

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