fork(2) download
  1. # creation of password list input - bytes do not count:
  2. w="about after again below could every first found great house large learn never other place plant point right small sound spell still study their there these thing think three water where which world would write"
  3.  
  4. # THE SOLUTION:
  5. import re;f=lambda a:re.findall("\\b"+"[%s]"*5%a+"(?i)",w)[0]
  6.  
  7. # code length output - bytes do not count:
  8. print("This Python 3 solution is {} bytes long.".format(len(
  9. 'import re;f=lambda a:re.findall("\\b"+"[%s]"*5%a+"(?i)",w)[0]'
  10. )))
  11.  
  12. # tests - bytes do not count:
  13. print(f(("FGARTW","LKSIRE","UHRKPA","TGYSTG","LUOTEU")), "=> first")
  14. print(f(("ULOIPE","GEYARF","SHRGWE","JEHSDG","EJHDSP")), "=> large")
  15. print(f(("SHWYEU","YEUTLS","IHEWRA","HWULER","EUELJD")), "=> still")
  16.  
Success #stdin #stdout 0.03s 9936KB
stdin
Standard input is empty
stdout
This Python 3 solution is 60 bytes long.
first => first
large => large
still => still