HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Array and Matrices > problem:


151. 50557 - nth Power of m (Long Multiply)

Guest
• Discussion of problem (1)

Volume problems

• 50332 - Variance of a series
• 50687 - Pascal Triangle - 2
• 50342 - 100 Factorial
• 50337 - Exam Averages
• 51149 - One Piece Arena
• 50558 - Biggest Barn
• 50567 - Input Data Normalization
• 50768 - Where is Waldorf?
• 151. 50557 - nth Power of m (L...
• 160. 50301 - Fractions to Decimals
• 165. 50360 - National Elections
• 170. 50319 - Toll Plazas
• 210. 50361 - Align Two Lists

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