This task is a task about euler's function, you only need to know the Euler function to solve it. If you need information about Euler's function go here. Also, don't precalculate the values and store in array , count the answer after you read teh number so that you can avoid TLE.
No comments:
Post a Comment