I have a suspicion that they have solved thousands upon thousands of these problems, developing a library of sorts. They can probably translate these problems into ones they have solutions for and just work from there.
Maybe that's jealousy talking, though.