HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Array and Matrices > problem:


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

Guest
• Discussion of problem (1)

Volume problems

• 060. 50389 - Reverse an Array
• 100. 50330 - Find the average of n ...
• 110. 50359 - Mode of a Series
• 120. 50331 - Number of Numbers o...
• 120. 50329 - Draw Matrix-1
• 125. 50538 - Sum of kth Diagonal
• 140. 50599 - Sum of Squared Error ...
• 15-SprPrE1-80. 50741 - DNA Distance
• 151. 50557 - nth Power of m (L...
• 155. 50334 - What is the class aver...
• 155. 50726 - Pascal Triangle - 1
• 160. 50301 - Fractions to Decimals
• 165. 50360 - National Elections
• 170. 50319 - Toll Plazas
• 180. 50755- Top N Donors - 1
• 185. 50784 - Top Growing Company
• 190. 50734 - Product Info (In Srt)

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