HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50557 - nth Power of m (Long Multiply)

Guest
• Discussion of problem (1)

Section problems

• 51032 - Triangle Property
• 51033 - Sum of the series
• 51027 - Download Percentage
• 51028 - Isosceles Triangles
• 51031 - Convert from Hex to Dec
• 51030 - Number of Right Triangles
• 50553 - Divisible by m
• 50554 - nth power of m
• 50557 - nth Power of m (Long ...
• 50559 - Prime Factors of a Number
• 50565 - Binary numbers
• 50568 - Body Mass Index Calculator
• 50571 - Armstrong Numbers - 2
• 50572 - Palindromic Numbers
• 50574 - Triangular Numbers
• 50578 - Mersenne prime
• 50579 - Pentagonal Numbers

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