Pls Help me in solving this !

Revision en1, by ubercool, 2018-11-11 12:53:54

I was solving tourists problem on kattis and keep on getting WA ,I can't understand what I am doing wrong.Here is a link to my code.The problem is asking for the sum of all paths between such vertex pair (x,y) where y>x and y%x is zero.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ubercool 2018-11-11 12:53:54 353 Initial revision (published)