Page 1 of 4
Problem F in the running contest 10963
Posted: Wed Nov 02, 2005 3:10 pm
by little joey
I don't know who the organiser of this contest is, so I don't know who to send an email, so I'll post here:
The input for problem F contains negative values for the width of the gap. You can only get accepted by answering "no" when this width is non-positive. This is stupid.
Posted: Wed Nov 02, 2005 5:39 pm
by little joey
Also the number of people in problem B can be bigger than 500.
There's also something wrong with the input of problem D, because my asserts indicate that both coordinates can differ between two consecutive points on a route (while the sections should be paralel to either streets or avenues).
I'm giving up on this pile of rubbish. I hope that UVA corrects the errors before putting the problems into the 24h judge...
Posted: Wed Nov 02, 2005 5:45 pm
by Cho
Someone took 65 submissions to get AC.
Your post makes me to be the very few who can get AC in the first attempt.

Posted: Wed Nov 02, 2005 6:13 pm
by Adrian Kuegel
For problem D, I just printed "No" in cases when the given paths were wrong (not horizontal and vertical). With this I got Accepted.
Posted: Wed Nov 02, 2005 6:33 pm
by Observer
little joey wrote:I hope that UVA corrects the errors before putting the problems into the 24h judge...
Will they put the tasks into the 24h judge? I mean, since task A is just the same as #10420 "List of Conquests"...
The mistake in Problem B (P > 500) bothered us greatly. That gave us 6 WA's and we've spent so much time looking for non-existing bug in our perfect code........

That's just bad... and we don't even want to see the contest rejudged, after so much time and effort wasted.....
Posted: Wed Nov 02, 2005 11:10 pm
by misof
little joey wrote:There's also something wrong with the input of problem D, because my asserts indicate that both coordinates can differ between two consecutive points on a route (while the sections should be paralel to either streets or avenues).
So
this was the problem! I spent quite a bunch of submissions on other asserts... and also I wasn't sure how to handle boundary cases like
- will the villagers stop and wait at the end of their journey or do they "go home" immediately?
- can they meet in a middle of a road (if they swap places in some step)?
so I tried submitting versions that handled these cases differently... until I became bored and annoyed and let it be. Kudoz to Adrian for pushing this one through in the last minutes.
BTW if I'm not mistaken, the only change I made in my solution of task C to change it from WA to AC was to change the bound for the number of items from 12 to 100. As the number of items was supposed to be <=10, this looks like yet another problem with the test data.
Posted: Thu Nov 03, 2005 5:31 am
by ardiankp
Hmm.. I got accepted without considering that case.. (actually I've never checked that case).
For problem F, is that means the output should be "no" whenever there is an input with y1 < y2?
Posted: Thu Nov 03, 2005 9:37 am
by misof
ardiankp wrote:Hmm.. I got accepted without considering that case.. (actually I've never checked that case).
Well, in that case consider yourself extremely lucky

(Take a look at the number of failed submissions...)
ardiankp wrote:For problem F, is that means the output should be "no" whenever there is an input with y1 < y2?
There are inputs with negative
W. (No columns descriptions follow, just as if W=0.) There can be cases with y1 < y2, I didn't check that and I handled them the same way I handled normal, valid input.
I.e., for the input
my program outputs
BTW in the contest I got TLE twice, because to read the column data I used the following code:
Code: Select all
scanf("%d ",&W);
while (W--) { ... }
Imagine my surprise when I saw that my short piece of code with just a few scanf()s and printf()s
timeouts 
Posted: Thu Nov 03, 2005 1:43 pm
by Adrian Kuegel
misof wrote:
So this was the problem! I spent quite a bunch of submissions on other asserts... and also I wasn't sure how to handle boundary cases like
- will the villagers stop and wait at the end of their journey or do they "go home" immediately?
- can they meet in a middle of a road (if they swap places in some step)?
so I tried submitting versions that handled these cases differently... until I became bored and annoyed and let it be. Kudoz to Adrian for pushing this one through in the last minutes.
I assumed they "go home" immediately, and they can meet in the middle of a road.
Posted: Thu Nov 03, 2005 2:52 pm
by ardiankp
LOL..
I assumed that they are waiting at the end...

10963 - The Swallowing Ground
Posted: Sun Dec 11, 2005 4:53 pm
by pipo
hi all...
In my opinion, this problem is very easy...
but, I got WA T.T
what is the critical input ? Could you give me some sample inputs and outputs ?
the WA code is following....
thanks in advance...

Posted: Sun Dec 11, 2005 5:14 pm
by Cho
It's problem F in this thread:
http://online-judge.uva.es/board/viewtopic.php?t=9300
I don't know whether the data is corrected in the online judge.
Posted: Sun Dec 11, 2005 5:54 pm
by pipo
thanks very much...
I read the thread...
and then, I changed my code.. but still WA
excuse me but could you send me your accepted code ??
I am exhausted..
help me T.T
The email address is
kki2406@nate.com
Thanks in advance..

Posted: Sun Dec 11, 2005 6:06 pm
by little joey
The testdata was corrected.
Your double loop construction reads too much data in case of failure. Insert something like "if(!flag) i++;" between the two loops. (Or rewrite the whole thing so that it reads the input in one loop).
Posted: Mon Dec 12, 2005 2:11 pm
by pipo
wow!! thanks you very much, little joey...
you're right...
I had a mistake about it...
it's very stupid of me to do that...
I changed my code to rewriting a part of the input in one loop..
in the end, i got AC.. thanks again
