fork(2) download
  1. f = lambda x:`map(max,*x)`[2::5].split(' #')[0]
  2.  
  3. for s in (
  4.  
  5. '''E #This comment intentionally left blank
  6. ac #
  7. h s #
  8. ecti #
  9. on is #
  10. one c #
  11. haracte #
  12. r longer #
  13. than the #
  14. last! #''',
  15.  
  16. '''4 #This number is 7
  17. 8 #
  18. 15 #That last comment is wrong.
  19. 16 #
  20. 23 #
  21. 42 #''',
  22.  
  23. '''Hello #Comment 1
  24. world #Comment 2
  25. , #Comment 3
  26. how #Comment 4
  27. are #Comment 5
  28. you? #Comment 6''',
  29.  
  30. '''Prepare #
  31. for... #
  32. extra spaces! #'''):
  33.  
  34. print f(s.split('\n'))
Success #stdin #stdout 0.01s 9024KB
stdin
Standard input is empty
stdout
Each section is one character longer than the last!
4815162342
Hello world, how are you?
Prepare for...          extra spaces!