Answers?
Posted: Mon Mar 03, 2003 6:22 am
I know this thread is old but I'm stumped, so what the heck.
I have my program (WA) which to my eyes seems fine. To help figure out what's wrong with it, I found some AC code and have been using it as a black box for comparison.
Seolv problem #1:
WA and AC = 7961.00
Seolv problem #2:
WA = 7961.0, AC = 454.0
The difference is the fourth kingdom. WA says bomb 110,195 is a hit while AC says it's not.
The hull is
100, 101
132, 102
200, 195
101, 223
So there doesn't seem to be any question that 110 195 is inside the walls and thus a hit! This is not the first time the AC program has disagreed with my WA program and my WA has always been right.
cyfra problem:
my WA and the AC I have both get 101.0
seolv claims 100.0 from an AC program.
zbogi claims 0.0 from an AC program.
So this problem is nuts. All these AC programs getting DIFFERENT (and maybe wrong) answers? How can this be? At the very least, the judge test set is not very complete or it would weed some of these so-called ACs out. I'm starting to suspect the judge is flat out wrong but I'm too stubborn to code a bug in just to get AC.
But, then again, my solution is WA, so what do I know. I suspect some devious, tricky input that I haven't thought of.
Iz
I have my program (WA) which to my eyes seems fine. To help figure out what's wrong with it, I found some AC code and have been using it as a black box for comparison.
Seolv problem #1:
WA and AC = 7961.00
Seolv problem #2:
WA = 7961.0, AC = 454.0
The difference is the fourth kingdom. WA says bomb 110,195 is a hit while AC says it's not.
The hull is
100, 101
132, 102
200, 195
101, 223
So there doesn't seem to be any question that 110 195 is inside the walls and thus a hit! This is not the first time the AC program has disagreed with my WA program and my WA has always been right.
cyfra problem:
my WA and the AC I have both get 101.0
seolv claims 100.0 from an AC program.
zbogi claims 0.0 from an AC program.
So this problem is nuts. All these AC programs getting DIFFERENT (and maybe wrong) answers? How can this be? At the very least, the judge test set is not very complete or it would weed some of these so-called ACs out. I'm starting to suspect the judge is flat out wrong but I'm too stubborn to code a bug in just to get AC.
But, then again, my solution is WA, so what do I know. I suspect some devious, tricky input that I haven't thought of.
Iz