Math day problem


My code isn’t working for all the test cases. May I know where am i wrong?

Hi @nayakashutosh99

While doing exponent, you need to perform modulation simultaneously. This is known as modular exponentiation. corrected Code : https://ide.codingblocks.com/s/207727

Hope it Helps.

thank you!!! Got my mistake