If everyone was focused on trying to catch cheating, they may not have noticed.
I would have tried cheating by only memorizing the first ten and last five digits, then make up the rest in the middle.
The goal was to cheat, not to provide the correct answer.
EDIT: Apparently one of the students who originally was given this test, did in fact use this method [0]:
"Another just memorized the first ten digits of pi and randomly filled in the rest, assuming the instructors would be too lazy to check every digit. His assumption was correct."
[0] http://www.rumint.org/gregconti/publications/KobayashiMaru_P...
He copied the same middle paragraph into his paper and it took 5 weeks before the teacher noticed.
It would definitely be more work to prepare a method of cheating.
Even if classes are one day apart, it's perfectly doable without cheating. But that's not the norm. With more than a full day, you've got plenty of time.
Not really in the spirit of the assignment though.