fork download
  1. from re import*
  2. def f(x):
  3. d='';m=0
  4. for w in split(r"[^\w\d*'~\n]+",sub(' ','~',x))[:-1]:l=len(sub("[*'~\n]",'',w));q='*'in w;d+='. '[w[0]>'}':]*(w[0]in'~\n')+chr(64+l+m)[q:];m=(2-l%2)*10*q
  5. print d+'.'
  6.  
  7. # HELLO.
  8. f('Neurotic Frogs *O*ught To Rel*a*x In *M*ud Baths!')
  9.  
  10. # HINT.
  11. f('Business standards all*o*w only *adult* amphibians.')
  12.  
  13. # GOOD JOB PPL.
  14. f('Rejoice, *a*ll frogs an*d* toads also! Montgomery Sal*o*n opens up! Ha*pp*y throng fill*s* street ecstatically!')
  15.  
  16. # ADAM. MAN.
  17. f('''I like 3.1415926535897.
  18. IM*O*, it's a *b*la*st*, yeah!''')
  19.  
  20. # QUARTATA.
  21. f('*I*, happily, *th*anks 2 u *e*ditin*g* specific wor*ding*--clarifying a *bit*--betterment :D!')
  22.  
  23. # MY NAME IS INIGO MONTOYA. YOU KILLED MY FATHER. PREPARE TO DIE.
  24. f('''Perpendicular l*ou*nging calms. *A* frog, a m*u*d cap... bliss! Wallowing g*e*n*e*rates happiness. Amphibian sp*a* isn't expensive--seventy d*o*llars--cheap! That'*s* not *a* large e*x*pens*e* from an*y* discerning fr*o*g's money, unlik*e* Super 8.
  25. Ever*y*one--frogs, toad*s*, newts, *a*nd salamanders! G*e*t a wonderful shiat*s*u, or recei*v*e an other kind. Masseus*es* are her*e* today! Invite a fianc*e*e, supervisor, roommate, niece: *all* welcomed!
  26. Y*o*u simply ne*v*er believed these p*o*ssibilitie*s*; they're (I *swear*) absolute truth! Th*e* Montgomery A*m*phibian Salon! Come luxuriate today!''')
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
HELLO.
HINT.
GOOD JOB PPL.
ADAM. MAN.
QUARTATA.
MY NAME IS INIGO MONTOYA. YOU KILLED MY FATHER. PREPARE TO DIE.