← All problemsSign in

Shanks Test

Luffy's idol Shanks is back to see if Luffy has surpassed him yet,and so he decides to test Luffy a bit. He gives Luffy a board of dimensions $N * M$. He also gives Luffy $Q$ queries, which he has to process. Each query is one of two types - **type $1$ : $X_0$ $Y_0$ $X_1$ $Y_1$ $C$** - A rectangular tile T covering cells **[ $X_0$ .. $X_1$ ] [ $Y_0$ .. $Y_1$ ]** of colour $C$ is kept on the boa

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