uniq words by pankdm

s={}\x0d
while 1:\x0d
 for w in raw_input().split():\x0d
  if w not in s:s[w]=1;print w

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

download

return to the top page