Vou dar uma ajuda :D
0 - warming up (
http://www.pythonchallenge.com/pc/def/0.html)
R: 274877906944 (coloca no url:
http://www.pythonchallenge.com/pc/def/274877906944.html)
essa é fácil :D
1 - map (
http://www.pythonchallenge.com/pc/def/map.html)
from string import maketrans
intab="abcdefghijklmnopqrstuvwxyz"
outtab="cdefghijklmnopqrstuvwxyzab"
trantab=maketrans(intab, outtab)
instring = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle"
outstring = instring.translate(trantab)
print outstring
como ele fala no "
everybody thinks twice before
solving this." então vamos reverter as idéias :) vendo que k->m, vemos que o K toma o lugar do M no alfabeto ( Ex: ...g h i j K l M... contando do K para o M fica: k=1, l=2, m=3, então, modificando o alfabeto vamos do "a" ao "c", sendo assim retira as duas letras antes do "c" o tornando primeiro e coloca o "a" e "b" em ordem de fila após o "z".
tendo essa saída:
hope you didnt translate it by hand. that's what computers are for.
doing it in by hand is inefficient and that's why this text is so long.
using string.maketrans() is recommended. now apply on the url.
mas.... :D
--
Alec Nascimento -
alecsys.netUL#423746
Fortaleza - Brasil