So my teacher was recently replaced by a long term supply teacher right before a test

Many of the students have the tests from last semester as practice, and it is actually encouraged by the math teachers

Coincidentally, the test we did is the exact same as last semesters and I ended up getting a 96.

AITA for "cheating" on my math test because the teacher didn't make a new one?