New Prime Minister
CodeChefOpen on judge ↗
Jagat Farm is most backward country in the world. The cause is due its Prime Minister Mr. Pankaj Sharma who had a master's degree in expanding corruption in whole country. So, there will be re-election of Prime Minister which gonna be done by asking a simple question as follows:- Let's consider Jagat Farm with $N$ cities and $M$ bidirectional roads of three types. In Jagat Farm, men can
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.
Sign in to chat with the tutor and save your progress.
Sign in to start