← All problemsSign in

Weird Problem

Ram and Shyam are very good at Graph theory and Combinatorics. They can solve any problem related to this subject. The Professor of Graph theory course gave them a very weird project. He just gives two integers $N$ and $M$. Using these integers, they are supposed to create and solve a question related to Graph Theory. Based on what they do, they are given scores. Ram and Shyam are on the same tea

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