Skip to content

Instantly share code, notes, and snippets.

@nneonneo
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nneonneo/c9f3ef399f0c588634d7 to your computer and use it in GitHub Desktop.
Save nneonneo/c9f3ef399f0c588634d7 to your computer and use it in GitHub Desktop.
codegolf:25624:justhalf
import sys
R=raw_input
F=';;onastifeybhmudgkprw;topenayridsubwglfhcmkxjv;elsatrodinphmcukwbfgyvjxzq;eatslroncihudpgmfbywvkqxjz;eastrinclodumphygbfvwkxjqz;etnocsiralupdmgyhfbvwkxqjz;enostciarldpmuygvhfbwxqkjz;eitnoasrclupmdyghfvbwxkjqz;einocstarlpumdygvbhfxwqkj;itacslnorepumdgyvfbhxkqw;intaoslecrupymdgfhvbqxjwz;nitaoerclsmudpygfvhbqxj;itneaorscmpdlfuvybh;ratdgfihosw;;ceimontalu'.split(';')
while 1:
w=R();f=0
if'END'==w:break
for c in F[len(w)]:
print c;sys.stdout.flush();x=R();f+=w==x;w=x
if'_'not in x or f>5:break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment