374. Save Vasya
Time limit per test: 0.25
Memory limit: 65536
Vasya has huge problems. He needs to take polynomial ax
, then calculate its k
-th power and evaluate the sum of its coefficients. Your task is to help him.
The first line of the input contains three integers a
(1 ≤ a
≤ 100, 1≤ k
The first line must contain the sum of coefficients of the resulting polynomial.
1 2 2