Hide
Problem B
Square and Multiply
Languages
en
is
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 |