Help w/ UVa 12319

Revision en1, by sw1ft, 2016-12-16 02:29:05

Hey everyone. I'm trying to solve a problem from one of my country's old national contests: UVa 12319. What I did is to build both graphs, run Floyd-Warshall's on both and then check if it's valid or not. Here's my code (boolean p is to print some debug info).

I'm getting WA as veredict. Any help? Thanks!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sw1ft 2016-12-16 02:29:05 458 Initial revision (published)