uniq words by Raider

x[];char s[99];main(i,j,c,a){i=j=0;x[j]=0;while(c=getchar()+1){s[i++]=--c<33?a=i,i=-1,0:(a=0,x[j]+=c*c,c);if(a){for(a=0;a<j,x[j]!=x[a];a++);if(!(a-j))printf("%s\n",s),++j;x[j]=0;}}}

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

download

return to the top page