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 1205. By the Underground or by Foot?

Is it OK that I don't use underground at all?
Re: Is it OK that I don't use underground at all?
Posted by Roman Lipovsky 1 Nov 2004 12:09
Yes, in some tests you don't need to use underground.
So what shall I output in this case(+)
1. What should I output if I don't use underground at all?
2. What should I output if I get on the underground, get off, then on, then off, then on, then off...?
Re: So what shall I output in this case(+)
Posted by Roman Lipovsky 3 Nov 2004 11:53
1. Sample input:

1 2
2
2 2
6 3
1 2
0 0
0 0
0 3

Answer of my AC program:
3.0000000
0

2. Sample input:

1 2
4
1 0
3 0
4 0
6 0
1 2
3 4
0 0
0 0
7 0

Answer of my AC program:
5.0000000
4 1 2 3 4

Edited by author 03.11.2004 12:31
Thanks. I got AC.
Re: So what shall I output in this case(+)
Posted by Crash_access_violation 27 May 2008 20:22
Now I got AC. this test helped me :
1 2
6
2 5
3 5
4 5
5 5
6 5
7 5
1 4
3 6
3 4
0 0
1 5
8 5
answer :
5.5000000
4 1 4 3 6

good luck

Edited by author 28.05.2008 00:31
Re: So what shall I output in this case(+)
Posted by Aleksander 13 Aug 2009 00:13
But I think that in this test also can by another answer:
5.5000000
2 1 4

Am I right?
Re: So what shall I output in this case(+)
Posted by ilucian1 30 Jan 2010 14:20
yes, you are right, my program found the solution
5.5000000
2 1 4
and it was accepted
Re: Thanks. I got AC.
Posted by Edric Mao 4 Dec 2010 17:20
thx for the test
Re: So what shall I output in this case(+)
Posted by Hrayr 12 Jun 2011 01:04
My prog passed all of this tests but still crash(access violation) test3,Why?

Edited by author 12.06.2011 22:19
Re: So what shall I output in this case(+)
Posted by phonism 2 Oct 2012 13:31
Thanks for your sample. >_<