Getting WA ?

Revision en3, by ubercool, 2018-11-10 16:32:50

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
en3 English ubercool 2018-11-10 16:32:50 10 Tiny change: 'ing wrong.Pls help! Here is a ' -> 'ing wrong.Here is a '
en2 English ubercool 2018-11-10 11:45:00 105
en1 English ubercool 2018-11-10 08:03:41 241 Initial revision (published)