this was definitely me in high school. i still fondly remember the day when we could use our Ti-83+ for our exam but we had to show the teacher that we cleared memory for notes and formulas.
So i wrote a program that just made it look like I cleared memory and it worked like a charm.
I don't remember if I even stored anything that could be constituted cheating but it was more about the satisfaction of knowing I outsmarted them, heh.