11294 - Wedding

All about problems in Volume 112. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

tanvir
New poster
Posts: 22
Joined: Wed Aug 31, 2005 12:09 pm

11294 - Wedding

Post by tanvir »

can someone post some I/O for this problem. Im getting wa several times. :(
Last edited by tanvir on Fri Oct 05, 2007 9:20 pm, edited 2 times in total.

baodog
Experienced poster
Posts: 202
Joined: Wed Jul 04, 2007 6:53 am

Post by baodog »

you can get i/o files from the waterloo site.

tanvir
New poster
Posts: 22
Joined: Wed Aug 31, 2005 12:09 pm

Post 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

goodwill
New poster
Posts: 25
Joined: Mon Sep 03, 2007 10:54 am

Post by goodwill »

Yes, you are right. My AC output is the same as yours.

tanvir
New poster
Posts: 22
Joined: Wed Aug 31, 2005 12:09 pm

Post 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

gvcormac
Problemsetter & Reviewer
Posts: 194
Joined: Fri Mar 15, 2002 2:00 am
Contact:

Post 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

tanvir
New poster
Posts: 22
Joined: Wed Aug 31, 2005 12:09 pm

Post 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

gvcormac
Problemsetter & Reviewer
Posts: 194
Joined: Fri Mar 15, 2002 2:00 am
Contact:

Post 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.

tanvir
New poster
Posts: 22
Joined: Wed Aug 31, 2005 12:09 pm

Post 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.

gvcormac
Problemsetter & Reviewer
Posts: 194
Joined: Fri Mar 15, 2002 2:00 am
Contact:

Post 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.]
Last edited by gvcormac on Fri Oct 05, 2007 10:15 pm, edited 1 time in total.

tanvir
New poster
Posts: 22
Joined: Wed Aug 31, 2005 12:09 pm

Post 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...........
Last edited by tanvir on Fri Oct 05, 2007 9:05 pm, edited 1 time in total.

tanvir
New poster
Posts: 22
Joined: Wed Aug 31, 2005 12:09 pm

Post 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

tanvir
New poster
Posts: 22
Joined: Wed Aug 31, 2005 12:09 pm

Post 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:

gvcormac
Problemsetter & Reviewer
Posts: 194
Joined: Fri Mar 15, 2002 2:00 am
Contact:

Post 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

tanvir
New poster
Posts: 22
Joined: Wed Aug 31, 2005 12:09 pm

Post 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

Post Reply

Return to “Volume 112 (11200-11299)”