uniq words by G.w.

main(i,j,k){char s[999][20];k=0;for(;~scanf("%s",s[i]);){for(j=k=0;j<i;strcmp(s[j++],s[i])?k:k++);if(k==0)puts(s[i++]);}}

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

download

return to the top page