Need help in Codeforces Round #260 (Div. 2) E.Civilization

Revision en1, by M.A.H.M.O.O.D, 2016-08-14 20:17:37

Hi everyone.

I can't solve this problem I have tried so much can you please tell me what's wrong with my code I keep getting WA on 42.

456E - Цивилизация

19871836

Thanks in advance and have a nice day.

Tags help, dsu, graph

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English M.A.H.M.O.O.D 2016-08-14 20:17:37 288 Initial revision (published)