Jadoo Has The Power
Practice
3 (3 votes)
Easy
Problem
1% Success 1773 Attempts 20 Points 2s Time Limit 256MB Memory 1024 KB Max Code

Problem Setter: Soumik Rakshit

Jadoo, the space alien entrusted with the equation of life, crash landed on Earth while being chased by his arch nemesis the Anti-monitor. On Earth, he met Abhik to whom he extended his hand of friendship. But Abhik, being a snob refused Jadoo's friendship, due to his short and fat figure. Enraged by Abhik's refusal, Jadoo decided to show Abhik his power.

He gave Abhik two numbers X and Y and asks him to find out X raised to Y. Although Abhik is good in designing, he is afraid of mathematical problems. Being a good friend of Abhik, help him to find out the solution.

INPUT: The input consists of two space seperated integers X and Y.

OUTPUT:The output consists of a single number which is the result modulo 10^9+7.

CONSTRAINTS: 1<=X<=10^10, 1<=Y<=10^10

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
132 votes
Tags:
ReadyMathematicsOpenApprovedEasyMathamatics
Points:20
11 votes
Tags:
Ad-HocMathematicsOpenApprovedEasyMathamatics
Points:20
Tags:
MathematicsEasyMathematicsMathamatics