ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1004. Sightseeing Trip

I've got TL#1.Is the Test#1 so difficult?
Posted by cpc 31 May 2005 20:27
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by nana 19 Jun 2005 20:17
I have the same problem and I don't know why.
If somebody know this test or some other like that, please show it.
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by Sid 22 Jun 2005 15:31
I supose that there is only one test... But all what you need is delete one road between 2 points and with help of Deikstra find out the shortest way between this points ... than add length of road and you find out the shortest way throw this row.... and so on! I solved this problem such way!
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by Ilya Rasenstein 16 Aug 2005 21:45
It's O(N^4)! You can optimize this nice idea to reach O(N^3)!
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by Cybernetics Team 20 Aug 2005 00:44
here is test 1:
4 6
1 2 40
1 3 50
1 40 60
2 3 10
2 4 30
3 4 20

one answer: 2 3 4
My program print the same answer, but I have WA#1. Please, anyone, tell me, where is the problem?
Posted by Partisan 21 Oct 2005 16:50


Edited by author 21.10.2005 16:50
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by cpc 21 Oct 2005 22:07
Thank you very much!
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by Валентин (PSU) 23 Feb 2006 21:08
Thanks for your test... :)
I have AC 0.046 sec...
Re: here is test 1
Posted by obtuseSword 3 Jun 2007 16:59
but this problem says:
"...In the town there are N crossing points numbered from 1 to N..."
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by Fessmax 6 Mar 2009 21:42
Cybernetics Team wrote 20 August 2005 00:44
here is test 1:
4 6
1 2 40
1 3 50
1 40 60
2 3 10
2 4 30
3 4 20

one answer: 2 3 4
My program prints:
2 4 3
It's true, imho.
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by Ibragim Atadjanov 7 Mar 2009 02:16
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by yzthz 17 Mar 2009 13:03
Floyd Algrathm is also advisable. However, please take note of another test:
4 4
1 2 10
2 3 1
3 4 1
4 1 1
should output things like 1 4 3 2
but NOT 1 4 3 4
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by stupidjohn 23 Nov 2010 09:00
my ans is 2 3 4,but get WA at Test#1
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by fainéant 2 May 2011 02:03
I think It's :
1 2 40
1 3 50
1 4 60
2 3 10
2 4 30
3 4 20
Re: I've got TL#1.Is the Test#1 so difficult?
Posted by Andreas Mihaloianis 17 Mar 2014 04:59
Impossible. I get 2 3 4 as answer at get wrong answer on #1