Is it OK that I don't use underground at all?
Re: Is it OK that I don't use underground at all?
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(+)
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
Re: So what shall I output in this case(+)
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(+)
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(+)
yes, you are right, my program found the solution
5.5000000
2 1 4
and it was accepted
Re: Thanks. I got AC.
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(+)
Thanks for your sample. >_<