find anagrams by pi8027

a[9],b[9],c[9];f(char*a,char*b){return*a-*b;}main(){for(qsort(a,strlen(gets(a)),1,f);gets(b);)if(qsort(strcpy(c,b),strlen(b),1,f),!strcmp(a,c))puts(b);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top