|  | 
|  | 
| вернуться в форум | can DP solve this data? Послано cyc  31 июл 2009 10:053 100 10000 100 101 10235
 1 34
 0
 3
 3
 3
 ...
 3
 99
 100
 
 i guess the answer is 201(1-35-34)
 can DP give this answer? i think only ShortestPath can give this answer.
Re: can DP solve this data? It's wrong answer. Right answer is 101.Re: can DP solve this data? I agree with you.
 for example
 
 1 2 100 100 100 1
 4
 2 3
 2
 3
 99
 
 when I used this input,my AC programm gave the answer 100 while the correct answer was 2
Re: can DP solve this data? Distances are different(!) integer numbers given in ascending order.So this test isn't correct.
 
 Edited by author 10.05.2012 20:35
Re: can DP solve this data? Послано sylap  26 авг 2013 02:18hey @bill125if L2 < X ≤ L3  then cost is C3. // from table in problem statement
 if  2 < X ≤ 100 then cost is 1 .
 As X is 1 you can't use C3=1.
 | 
 | 
|