← All problemsSign in

I Hate MOD

Hopefully campus will open some day and we will be able to induct face to face. There are $N + 1$ A-side clubs and $N + 1$ C-side clubs from 0 to N. There is only one way to get inducted. If a student's score matches the score of some club from A-side and C-side, then he/she gets inducted into both the clubs simultaneously. Here, comparison of score is done on a totally different basis. Let's as

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