Graph Problem

Revision en1, by ShowStopper728, 2017-12-27 16:05:25

I was trying to solve this graph problem .

my idea is the same as the editorial but I get TLE in test 34 can anyone help me ?

here is my code

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ShowStopper728 2017-12-27 16:05:25 267 Initial revision (published)