None of those, just crazy people being crazy fast, people like @SaiksyApo that redo every hard puzzle at his coffee break just to pass time.
Seriously though, I participate in this contest, and if you look at the results, you could see that it was really hard because not many people were able to finish in time. People that can really train or trained themselves with tons of exercices, lectures and such to achieve such level and speed.
You see, programming is experiment, fail, experiment, fail, then success. But those monsters have already experimented a lot, so when they see a new problem, when you and me are thinking "let's try this, we'll see if it's work!", they have already pinpoint a few solutions and choosing which one will be the fastest to implement.
TL;DR: git gud, practise and learn a lot, and maybe you or I will be able to become coding monsters ourselves