← All problemsSign in

Good, Bad, and the Ugly

Prince Bhagat, a CSE Heritage student loves to classify everything under three categories: Good, Bad, Ugly. Trijeet wanted to test the ability of Prince to categorize things. So, he gave him $T$ numbers of $2D$ matrices of size $N \times N$ where each cell contains an integer. Trijeet then asked Prince the count of each category. Since Prince is busy playing PUBG (prince367 – best player of our

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