weired thing of 273 ---- JackStraw

The forum to report every bug you find or tell us what you'd like to find in UVa OJ

Moderator: Board moderators

Locked
Hecton
New poster
Posts: 4
Joined: Sat Oct 06, 2007 3:38 pm

weired thing of 273 ---- JackStraw

Post by Hecton »

I get a AC program from my friend and one set of test data

from this forum.

But some thing odd happens.


Code: Select all

INPUT:
1 

6 
1 1 2 2 
0 0 1 1 
2 2 3 3 
3 3 4 4 
5 5 6 6 
0 0 10 10 
1 2 
1 3 
1 4 
1 5 
1 6 
2 3 
2 4 
2 5 
2 6 
3 4 
3 5 
3 6 
4 5 
4 6 
5 6 
0 0

Code: Select all

OUTPUT of the AC program

1 2
CONNECTED
1 3
CONNECTED
1 4
CONNECTED
1 5
NOT CONNECTED
1 6
CONNECTED
2 3
CONNECTED
2 4
CONNECTED
2 5
NOT CONNECTED
2 6
CONNECTED
3 4
CONNECTED
3 5
NOT CONNECTED
3 6
CONNECTED
4 5
NOT CONNECTED
4 6
CONNECTED
5 6
NOT CONNECTED
Firstly, rod 6 overlaps ALL line segments which

means all the other rods can connect to other rods via rod 6.

But in the output:

1 5

2 5

3 5

4 5
they all have "NOT CONNECTED". It is strange!!!

if we get rid of rod 6, the output makes sense. BUT ROD 6

OVERLAPS ALL OTHER RodS WHICH MAKES A PATH!!

I'm so confused. @.@ anyone can explain more to me??

Thanks alot!
Darko
Guru
Posts: 580
Joined: Fri Nov 11, 2005 9:34 am
Location: Calgary, Canada

Post by Darko »

My AC program outputs CONNECTED for all of those. Your friend's AC program does not solve the problem, it just passes the existing I/O.

You can make a few test cases that you think should be added to the judge and send it to UVa.
Carlos
System administrator
Posts: 1286
Joined: Sat Oct 13, 2001 2:00 am
Location: Valladolid, Spain
Contact:

Post by Carlos »

exactly, maybe our datasets are not as strong as desired. Please, make some datasets and sent them to us.
DON'T PM ME --> For any doubt, suggestion or error reporting, please use the "Contact us" form in the web.
Locked

Return to “Bugs and suggestions”