Search found 1 match

by Mira13
Sat Mar 03, 2012 3:05 am
Forum: Bugs and suggestions
Topic: 511 - Do You Know the Way to San Jose? - Do nothing AC
Replies: 62
Views: 11217

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

#include <cstdio>
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;
}
}




at the first glance, ur cmp function is not correct.
it doesn't take in account previous ...

Go to advanced search