LUBENICA - Lubenica


Added by:Jimmy
Date:2007-12-18
Time limit:1.210s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ERL JS-RHINO NODEJS PERL6 SCM qobi VB.NET
Resource:Croatian OI 2006

hide comments
2014-07-08 12:53:56 Enric Boix
Sotirios Nikoloutsopoulos, they're not asking for the shortest path.
2014-07-08 12:53:29 Enric Boix
I agree with Erel Segal. The first input doesn't seem to be correct.
2011-06-04 17:25:46 Sotirios Nikoloutsopoulos
Are those testcases right?
In the second testcases for instance query (6 , 4) how is it possible the shortest path to equal 2?

Last edit: 2011-06-04 17:26:18
2010-11-14 13:24:43 Erel Segal
The first input seems erroneous.

The first line should contain one integer (the number of cities), but it contains 4 integers.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.