Wrong expected output for input 0


The problem states that: P > 1 and A > 0.
Given those restrictions, there’s no way of getting 0 from any valid power. However, the expected output is “1”. The problem statement should say A>=0.


Carefully read the contraints, it is given that “given any positive integer”. 0 is not included in positive integer.