For cheating in the examination when I was still a student, I wrote some formulas on a small piece of paper. However, I could always remember those formulas without peeping on the paper during the examination. Maybe, writing those formulas carefully had strengthened my memory. Such cases had happened many times.