265 - Dining Diplomats

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

Moderator: Board moderators

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

265 - Dining Diplomats

Post by b821213 »

I just keep getting RE in this problem. Are there any special case in the problem?

I consider that nine countries are all different.And all names of the countries are given in only three letters.

If two countries have relation and common language, there is two edges, A->B and B->A.

Then just find whether there is a circle that involves all the country.

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

Re: 265 Runtime Error

Post by b821213 »

Sorry , but I get WA now.

I found that there may be two or more diplomats from the same country.

But , I still can't understand why I get WA.

Can anyone offer some test case?
b821213
New poster
Posts: 6
Joined: Sun Apr 24, 2011 3:01 pm
Location: Taiwan
Contact:

Re: 265 Runtime Error

Post by b821213 »

Got AC.....

Notice that there may be spaces after each lines = ="
And there may be more than ten names of countries appearing in the test data.
Post Reply

Return to “Volume 2 (200-299)”