I would reiterate the practice and practice mantra. But I think it's more of knowing where to find information. Being a professor and many years of experience, the information you need to look up to compete your task is just a thought away. If not, you know where to go find the information online quickly.
Whereas, the student struggle with IDE, looking up information from the book that you assigned and google. On top of that, you are confidence that your solution is correct, versus the student may not be as confidence; lacking confidence slows down your progress tremendously I believe. But that's another topic.
I think even with google, the student still have to look for an example that is similar to what they are trying to solve, understand the example, and assimilate to their solution. All of that takes much more time than you having the knowledge in your head.
To better compare, you should ask them how they go about solving the problem and you try to do similar steps. Now, are you still 40X faster?