← All problemsSign in

More Friends

In the era of online examination with little proctoring, cheating has become commonplace. It is known that if two people are friends with each other, they will share all the answers they solve themselves or receive from somewhere else, and hence get the same marks. The number of students enrolled in a course $N$, as well as all the number of existing friendships $F$ are known. Paul is a stud

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