Paraparaumu College student Robin Shen gained the perfect score in the Computational and Algorithmic Thinking International Competition run by the Australian Maths Trust.
The 13-year-old Year 10 student gained a high distinction award after scoring 100 per cent in the hour-long 15 question written test conducted at the college.
Robin found the test "pretty easy" but was unsure what one of the questions meant.
"My friends all said one of the questions was phrased like this, and that I had got it wrong and stuff, but I got it right."
Finding out he had gained the perfect score, Robin, 13, was "pretty happy".