It kind of reminds me of this.
Except in my case it's "All homework and no sleep makes Kate something something."
My worst enemy this semester was not procrastination (for the first time!), but mental blocks. My brain would just give up, even though my will hadn't. Initially, I thought that if I studied harder I would get better at math and would avoid mental blocks. Although that will help in the long term, I also tried some short-term-mental-block-busters. I have to admit, I was skeptical. To my surprise, some of them were extremely successful. Here are some tested brain decloggers:
1. Apples. A lot of apples.

Maybe its the shot of glucose to the brain. Maybe its the vitamins. Maybe its some combination.
An apple makes math easier for about half an hour. A friend of mine coined the term "mapples," meaning "apples eaten to ease the study of mathematics." Mapples are now a staple in my diet.
2. Getting up at 6am.
Sometimes, getting up early may feel like this:

But you may surprise yourself with the results that you get before sunrise. One of my profs suggested to me that if I was stuck on a problem, to try to solve it the instant I opened my eyes in the morning. I have to give him credit for his suggestion; I got some of my best results this way. It was as if I knew the answer all along and as if math is the easiest subject on the planet.
3. Get moving.
When apples and early morning study sessions just weren't enough, I took a long ride on the city bus. You know, the bus that goes down every single side street. It takes you an hour to make a trip that, had you gone on a direct route, would have been five minutes. That bus is the Solution Express. There is something about watching the houses and streetlamps pass you by that makes equations appear like magic.
More important than any of the above tips:
You're brain is an organ in your body and it will work best if you take care of it. Adequate sleep, proper nutrition, and regular physical activity are compulsory to keeping your brain functioning well.
Happy studying! Good luck to those writing exams.