If the point P lies between A and B, and X is mid -point of BP then. (fast without explaining)
Answers
Answered by
1
Answer:
Find (a^b)%m where ‘a’ is very large
Given three numbers a, b and m where 1<=b,m<=10^6 and 'a' may be very large and contains upto 10^6 digits. The task is to find (a^b)%m.
Examples:
Input : a = 3, b = 2, m = 4
Output : 1
Explanation : (3^2)%4 = 9%4 = 1
Input : a = 987584345091051645734583954832576, b = 3, m = 11
Output: 10
Answered by
1
this is answer of ur answer
Attachments:
![](https://hi-static.z-dn.net/files/db6/b21b8c6ed7f40606c9d92236e65ea3f0.jpg)
![](https://hi-static.z-dn.net/files/d5a/3ea552b4767b6a3452fb616b73d7812c.jpg)
Similar questions