Hide
Problem B
Square and Multiply
Accepted submissions to this problem will be granted a score of 100
Implement a memory efficient version of the square and multiply algorithm.
Input
Input is three lines. The first line contains the integer
Output
Output one line with the integer
Sample Input 1 | Sample Output 1 |
---|---|
3 53 356 |
75 |