Hey, you forgot to clear Weight[i] for different test case before
pushing new edges for new cities ! !
:)
and FastIO is not needed.
Parker
On 2012/12/23 11:25, thefourtheye dIVi wrote:
Hi,
I think this is one of the simple problems which would have got a lot
TLEs.
This is what I do, http://ideone.com/7XE0UU My actual starts at Line 228.
It TLE's in https://www.spoj.com/problems/SHPATH/ whereas it WA's in
http://www.spoj.com/problems/TSHPATH/ (which is same as the SHPATH
problem with 60 sec Time limit)
Could anyone please help me with this?
--
You received this message because you are subscribed to the Google
Groups "Google Code Jam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "Google
Code Jam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.