Viewing insights from Codeforces 1860B: Fancy Coins that are similar (thus shared) with only this insight from Codeforces 913G: Power Substring: This is the discrete logarithm problem, but here, we have that 2 is a primitive root mod 5^k for any k. by Solarion
- Be careful not to use brute force. The constraints are less than 10^8. Consider using floor division and modulus instead. by Solarion
Page 1 of 1.
View links to all pages
1About • Privacy Notice • Rules • Problems list • Journal • Your profile • GitHub
Moon Symbol icon by Icons8 • Sun icon by Icons8 • Emojis from Twemoji by Twitter under CC by 4.0