Please subscribe to the official Codeforces channel in Telegram via the link ×

Exponential Problem

Revision en2, by turzo_sawroop, 2021-04-28 21:24:33

In this problem : modpow(a,modpow(b,c,INF-1),INF)-This Gives Correct Answers. modpow(a,modpow(b,c,INF),INF)-But this gives wrong Answers. But why? What's the mathematical logic??Can anyone please Explain??


  Rev. Lang. By When Δ Comment
en2 English turzo_sawroop 2021-04-28 21:24:33 15 Tiny change: 'roblemset/result/2061774/\nmodpow(' -> 'roblemset/task/1712/\nmodpow('
en1 English turzo_sawroop 2021-04-28 21:22:31 271 Initial revision (published)