Gennady Korotkevich's submission of Graph Construction | CodeChef