# spheret 3250 The Seven Percent Solution # python 2.7 def

Anuncio
# spheret 3250 The Seven Percent Solution
# python 2.7
def sevenPerc(u, e, c):
# sustituye caracteres codificados en uri
s = '' # salida
for i in u:
if i in e:
p = e.index(i)
s = s + '%2' + c[p]
else:
s=s+i
return s
# 'main'
e = ' !$%()*' # especiales
c = '014589a' # codigos
s = 1 # sigue
while s:
u = raw_input()
if u != '#':
print sevenPerc(u, e, c)
else:
s=0
# seaphcp, sdqdr, marzo 2016
Descargar