#53Easy
Numbers to their own power
Time: 1 s · Memory: 256 MB
- Nested loops
Statement
You are given natural numbers and (). Find .
Input format
A single line with two integers and ().
Output format
A single integer — the sum.
Examples
Input
1 3
Output
32
Input
2 2
Output
4
Note
This time the length of the inner loop depends on the outer loop variable: takes multiplications.
— you need / . In the first example: .
