-
-
Save nneonneo/c9f3ef399f0c588634d7 to your computer and use it in GitHub Desktop.
codegolf:25624:justhalf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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