-
-
Save jonatasemidio/2408632 to your computer and use it in GitHub Desktop.
Google Code Jam
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
d={'z':'q','q':'z','\n':'\n',' ':' ','a':'y','c':'e','b':'h','e':'o','d':'s','g':'v','f':'c','i':'d','h':'x','k':'i','j':'u','m':'l','l':'g','o':'k','n':'b','p':'r','s':'n','r':'t','u':'j','t':'w','w':'f','v':'p','y':'a','x':'m'} | |
inf=open('file.in') | |
l1=int(inf.readline()) | |
ouf=open('file.out','w') | |
def trans(l): | |
return ''.join(d[x] for x in l) | |
for i in range(l1): | |
ouf.write('Case #%s: %s'%(i+1, trans(inf.readline()))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Resolução do problema A do Code Jam 2012 em python.