This is an archive of the judge's response to questions on the problems. You should have received an email with the response already. This is available just in case the email got tossed to the Great Bit Bucket in the Sky.
--> Are a, n and p positive, or just non-negative? That is, could either be 0?
They are all positive. 0s only appear in the last input line to terminate input.
-- > Does the judge's compiler support the function itoa?
Nope.
It's not a standard thing and can't be done portably because of varying implementations. You probably want something like `sprintf' or use the `stringstream' class.