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.
265 Dining Diplomats (BUG in description)
Moderator: Board moderators
265 Dining Diplomats (BUG in description)
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.
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.
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 265 Dining Diplomats (BUG in description)
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.
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!
-
- New poster
- Posts: 1
- Joined: Fri Mar 01, 2013 8:42 am
Re: 265 Dining Diplomats (BUG in description)
hmm..good idea with lots of informative & new idea i really learn a lot from here. ![8)](./images/smilies/icon_cool.gif)
![8)](./images/smilies/icon_cool.gif)