Page 1 of 2

11294 - Wedding

Posted: Thu Oct 04, 2007 11:25 am
by tanvir
can someone post some I/O for this problem. Im getting wa several times. :(

Posted: Thu Oct 04, 2007 10:30 pm
by baodog
you can get i/o files from the waterloo site.

Posted: Fri Oct 05, 2007 3:04 pm
by tanvir
thnx baodog for your reply
i didn't found any additional I/O but i found a source code of wedding which is found as a AC code when it is tested.

then i make some sample input to compare it with my own source code:
input:

10 2
1h 2w
1h 2h

for which my own code's output is:
1h 2h 3h 4h 5h 6h 7h 8h 9h

and the ac code's output is:
bad luck

Now I think thats my solution is right and it goes perfectly with the problem statement(so far as i understood the prob).
because if 1h and 2h sits in the same side as bride, the bride will not see them and the bride will only see 2w which satisfy the criteria......
Am I right ? :roll: or i have understand the problem wrongly????

best regards
tanvir

Posted: Fri Oct 05, 2007 4:34 pm
by goodwill
Yes, you are right. My AC output is the same as yours.

Posted: Fri Oct 05, 2007 6:08 pm
by tanvir
thnx goodwill
then i found a AC code in the waterlo site which didnt pass this test case(!)
So can we say that if that was the judge solution then it was wrongly solved and didnt pass the above critical input...hope it will rejudge

Can you give me some inputs to test my code goodwill...???

best regards
tanvir

Posted: Fri Oct 05, 2007 8:22 pm
by gvcormac
tanvir wrote:thnx baodog for your reply
i didn't found any additional I/O but i found a source code of wedding which is found as a AC code when it is tested.

then i make some sample input to compare it with my own source code:
input:

10 2
1h 2w
1h 2h

for which my own code's output is:
1h 2h 3h 4h 5h 6h 7h 8h 9h

and the ac code's output is:
bad luck

Now I think thats my solution is right and it goes perfectly with the problem statement(so far as i understood the prob).
because if 1h and 2h sits in the same side as bride, the bride will not see them and the bride will only see 2w which satisfy the criteria......
Am I right ? :roll: or i have understand the problem wrongly????

best regards
tanvir
I'm not sure what code you downloaded from Waterloo, but here's the result of the official solution.

[105]% g++ E.C
[106]% ./a.out
10 2
1h 2w
1h 2h
1h 2h 3h 4h 5h 6h 7h 8h 9h

Posted: Fri Oct 05, 2007 8:29 pm
by tanvir
thnx cormac for reply

this is the link of that code:

http://plg.uwaterloo.ca/~acm00/070929/data/wedding.c

it got ac in UVA but result "bad luck" for the test case...
i will remove the link after your message....

best regards
tanvir

Posted: Fri Oct 05, 2007 8:32 pm
by gvcormac
tanvir wrote:thnx cormac for reply

this is the link of that code:

http://plg.uwaterloo.ca/~acm00/070929/data/wedding.c

it got ac in UVA but result "bad luck" for the test case...
i will remove the link after your message....

best regards
tanvir
The official Waterloo data and solutions always begin with the
problem letter. Anything else is just garbage that happens to
be left lying around.

Posted: Fri Oct 05, 2007 8:39 pm
by tanvir
ok
when garbage is accepted with some garbage output
then it may raise question about the judge data.

strange
really strange that how a garbage code can have a AC.

Posted: Fri Oct 05, 2007 8:49 pm
by gvcormac
tanvir wrote:ok
when garbage is accepted with some garbage output
then it may raise question about the judge data.

strange
really strange that how a garbage code can have a AC.
[I had made a comment saying that Waterloo had 20 test cases where uva.es had only one. I was mistaken. uva.es should have all test cases as well.]

Posted: Fri Oct 05, 2007 8:56 pm
by tanvir
IS THIS A JUDGE SYSTEM(!!!!!!!!!!!!!!)
YOU ARE RIGHT CORMAC
I GOT AC USING THIS CODE ALSO

Code: Select all

#include<stdio.h>
int main()
{
	printf("1h 2h 3w 4h 5h 6h 7h 8h 9h\n");	
	return 0;
}
this is really pathetic...........

Posted: Fri Oct 05, 2007 9:02 pm
by tanvir
AND THERE IS NO CASE LIKE

Code: Select all

0 0
SO YOU WILL GET WA IF YOU CHECK 0 0 CONDITION THOUGH THE PROBLEM SAYS THAT
ITS REALLY RIDICULUS

Posted: Fri Oct 05, 2007 9:24 pm
by tanvir
FROM NOW I WILL FIRST SEND THE SAMPLE OUTPUT BEFORE SUBMITTING ANY PROBELMS
WHO KNOWS IF THE PROBELM HAVE SINGLE INPUT WITHOUT BREAKING CONDITION(!!!!!!!!!!!!!) :wink:

Posted: Fri Oct 05, 2007 9:27 pm
by gvcormac
tanvir wrote:FROM NOW I WILL FIRST SEND THE SAMPLE OUTPUT BEFORE SUBMITTING ANY PROBELMS
WHO KNOWS IF THE PROBELM HAVE SINGLE INPUT WITHOUT BREAKING CONDITION(!!!!!!!!!!!!!) :wink:
In a contest that'll cost you points.

This is a practice site. I don't see that developing strategies to spoof the judge gives you any useful practice.

P.S. don't shout

Posted: Fri Oct 05, 2007 9:33 pm
by tanvir
hey cormac
im not shouting for publicity
im not a great programmer.

so i have to ready a program after a lot of thoughts
but when it comes WA for poor judge data (for giving the breaking conditions) it really frustrated us.
really.
im living in a country where net speed is very slow
and i dont want my time to spent with double shouting for this kinda problem.
hope the judge will take care about it.

best regard
tanvir