10752 - Distant Jumping

All about problems in Volume 107. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
sunny
Experienced poster
Posts: 124
Joined: Sun Sep 11, 2005 10:22 pm
Location: Civil-BUET

10752 - Distant Jumping

Post by sunny »

This problem seems to be finding the Hamiltonian Cycle of graph.
But 2000 vertices, so how to speed up?
mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Post by mf »

Find an efficient algorithm, of course!

Think about the following:
The jumper can jump from city A to city B if there is a way from A to B over the roads containing at most three roads.
Thanks to this restriction, a linear-time algorithm exists.
Monsoon
Learning poster
Posts: 66
Joined: Fri Jul 23, 2004 4:42 pm
Location: Poland

Post by Monsoon »

Hi, could anyone help me?

http://online-judge.uva.es/board/viewtopic.php?t=21548

thanks in advance
rio
A great helper
Posts: 385
Joined: Thu Sep 21, 2006 5:01 pm
Location: Kyoto, Japan

Post by rio »

I'm having same problem as Monsoon.

This problem is easy to check if the solution is valid, so its strange getting WA..
Maybe the problem with the new server.
Could someone who got AC with the old server see if it could still get AC ?

Thanks in advance.
----
Rio
mf
Guru
Posts: 1244
Joined: Mon Feb 28, 2005 4:51 am
Location: Zürich, Switzerland
Contact:

Post by mf »

My old AC solution gets WA on the new judge.

Edit: in case admins are going to investigate this, the old AC submission's number is 5187713.
Last edited by mf on Tue Nov 20, 2007 7:56 pm, edited 1 time in total.
rio
A great helper
Posts: 385
Joined: Thu Sep 21, 2006 5:01 pm
Location: Kyoto, Japan

Post by rio »

Thanks mf. I'll report this to "Bugs and suggestions".

----
Rio
Post Reply

Return to “Volume 107 (10700-10799)”