what you describe would be cheating. My approach is the opposite. What I did was "You are born during the exam, given access to a training set and the questions then learn from scratch during the exam"
I put more details in the answer here: https://news.ycombinator.com/item?id=49525841