Skip to main content

Answer to life, the universe, and everything

Post the shortest code possible that will output 42 only if the input is:

abbcccddddeeeeeffffffggggggghhhhhhhhiiiiiiiiijjjjjjjjjjkkkkk‌​kkkkkkllllllllllllmm‌​mmmmmmmmmmmnnnnnnnnn‌​nnnnnooooooooooooooo‌​ppppppppppppppppqqqq‌​qqqqqqqqqqqqqrrrrrrr‌​rrrrrrrrrrrsssssssss‌​sssssssssstttttttttt‌​ttttttttttuuuuuuuuuu‌​uuuuuuuuuuuvvvvvvvvv‌​vvvvvvvvvvvvvwwwwwww‌​wwwwwwwwwwwwwwwwxxxx‌​xxxxxxxxxxxxxxxxxxxx‌​yyyyyyyyyyyyyyyyyyyy‌​yyyyyzzzzzzzzzzzzzzz‌​zzzzzzzzzzz