HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50557 - nth Power of m (Long Multiply)

Guest
• Discussion of problem (1)

Section problems

• 50684 - Sum of prime numbers fro...
• 50546 - Average Fuel Price
• 50247 - Missing numbers
• 50301 - Fractions to Decimals
• 50332 - Variance of a series
• 50342 - 100 Factorial
• 50338 - Convert Into Decimal
• 50343 - The number of Ending Zero...
• 50557 - nth Power of m (Long ...
• 50637 - Number systems

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Prepared by Ibrahim Mesecan. Difficulty Gamma

nth power of m


Get two numbers n and m, and then calculate the nth power of m.

Input specification
There will be two numbers in a line which are between 1 ≤ n, m < 100

Output specification
Calculate and show the result followed by an endline. And, the length of the result does not exceed 255 characters.

Input 1 Input 2
7 2 19 91
Output 1 Output 2
128
16664276159359979836134597478321347811

Для отправки решений необходимо выполнить вход.

www.contester.ru