← All problemsSign in

General Aladeen

President Prime Minister Supreme Leader Admiral General Haffaz Aladeen is the dictator of the greatest country on Earth - Wadiya. The country is full of happy citizens living in 'N' number of small cities. The cities are connected by 'M' number of roads with starting point s1, s2...sM and ending points e1,e2... eM. Everyone knows how much Aladeen is fond of his name. He keeps renaming things arou

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