Search found 6 matches

by b821213
Sun Feb 05, 2012 2:20 pm
Forum: Bugs and suggestions
Topic: 511 - Do You Know the Way to San Jose? - Do nothing AC
Replies: 62
Views: 11205

200 - Don't know why Wrong Answer....

#include <cstdio>
#include <cstring>

bool m[26][26];
int ind[26];
bool used[26];

void cmp(char a[],char b[]){
for(int i=0;a[i]&&b[i];++i)
if( a[i] != b[i] ){
int t1 = a[i]-'A';
int t2 = b[i]-'A';
m[t1][t2] = 1;
used[t1] = used[t2] = 1;
++ind[t2];
return;
}
}

int main(){

char last[100 ...
by b821213
Sun May 15, 2011 6:42 am
Forum: Volume 2 (200-299)
Topic: 265 - Dining Diplomats
Replies: 2
Views: 2237

Re: 265 Runtime Error

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.
by b821213
Sat May 14, 2011 9:52 am
Forum: Bugs and suggestions
Topic: 265 Dining Diplomats (BUG in description)
Replies: 3
Views: 4729

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 ...
by b821213
Sat May 14, 2011 9:51 am
Forum: Bugs and suggestions
Topic: 265 Dining Diplomats (BUG in description)
Replies: 3
Views: 4729

265 The description is strange.

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 ...
by b821213
Sat May 14, 2011 6:09 am
Forum: Volume 2 (200-299)
Topic: 265 - Dining Diplomats
Replies: 2
Views: 2237

Re: 265 Runtime Error

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?
by b821213
Sat May 14, 2011 2:27 am
Forum: Volume 2 (200-299)
Topic: 265 - Dining Diplomats
Replies: 2
Views: 2237

265 - Dining Diplomats

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

Go to advanced search