265 Dining Diplomats (BUG in description)

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

Moderator: Board moderators

Post Reply
b821213
New poster
Posts: 6
Joined: Sun Apr 24, 2011 3:01 pm
Location: Taiwan
Contact:

265 The description is strange.

Post by b821213 » Sat May 14, 2011 9:51 am

1. It says "Your employer will be seated at the first position at the table. The other positions will be numbered clockwise from 2 to 10. The person seated to the left of your employer is in seat number 2, the person seated to the right of your employer is in seat number 10."

but in the sample output, FRA is on the right seat to USA , but it prints "1 F USA E" while the output says " The first word is the language code for the person seated on the left" . It is obvious that "F" should be the language USA diplomat uses to talk with the diplomat from FRA, not CHN.

2.Output says "no blank line should appear after line 10", while it asks coder to "Print a blank line after each data set." So what should coder do after line 10?

This problem is very strange. I'm just getting WA while I don't know which one is right.

b821213
New poster
Posts: 6
Joined: Sun Apr 24, 2011 3:01 pm
Location: Taiwan
Contact:

265 Dining Diplomats (BUG in description)

Post by b821213 » Sat May 14, 2011 9:52 am

1. It says "Your employer will be seated at the first position at the table. The other positions will be numbered clockwise from 2 to 10. The person seated to the left of your employer is in seat number 2, the person seated to the right of your employer is in seat number 10."

but in the sample output, FRA is on the right seat to USA , but it prints "1 F USA E" while the output says " The first word is the language code for the person seated on the left" . It is obvious that "F" should be the language USA diplomat uses to talk with the diplomat from FRA, not CHN.

2.Output says "no blank line should appear after line 10", while it asks coder to "Print a blank line after each data set." So what should coder do after line 10?

This problem is very strange. I'm just getting WA while I don't know which one is right.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 265 Dining Diplomats (BUG in description)

Post by brianfry713 » Fri Mar 09, 2012 11:39 pm

I got AC. The sample I/O is correct, the output description is wrong. It should read: The first word is the language code for the person seated on the right. The second word is the country code for the diplomat. The third word is the language code for the person seated on the left.

Print a blank line after every data set. There should be a newline between data sets and after the last data set.

I think also you have to make sure that both countries have relations with each other, for example the data set might contain a country ABC that has relations with DEF but DEF doesn't have relations with ABC so they couldn't sit next to each other.
Check input and AC output for thousands of problems on uDebug!

comusgoogle
New poster
Posts: 1
Joined: Fri Mar 01, 2013 8:42 am

Re: 265 Dining Diplomats (BUG in description)

Post by comusgoogle » Fri Mar 01, 2013 8:43 am

hmm..good idea with lots of informative & new idea i really learn a lot from here. 8)

Post Reply

Return to “Bugs and suggestions”