fork download
  1. def parse(inFile):
  2. return inFile.readline()
  3.  
  4. def hint(x,w1,w2):
  5. for i in xrange(len(w1)):
  6. x[w1[i]] = w2[i]
  7.  
  8. def solve(content):
  9. dictionary = {}
  10. hint(dictionary, """ejp mysljlyc kd kxveddknmc re jsicpdrysi
  11. rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd
  12. de kr kd eoya kw aej tysr re ujdr lkgc jv""", """our language is impossible to understand
  13. there are twenty six factorial possibilities
  14. so it is okay if you want to just give up""")
  15. hint(dictionary, "y qee", "a zoo")
  16. hint(dictionary, "z", "q")
  17. return "".join([dictionary[c] for c in content])
  18.  
  19. if __name__ == "__main__":
  20. from GCJ import GCJ
  21. GCJ(parse, solve, "/Users/lpebody/gcj/2012_q/", "a").run()
  22.  
  23.  
  24.  
Runtime error #stdin #stdout 0.02s 4672KB
stdin
Standard input is empty
stdout
Standard output is empty