Viewing other problems with insights similar to only this insight from Codeforces 1860B: Fancy Coins:
Be careful not to use brute force. The constraints are less than 10^8. Consider using floor division and modulus instead. by Solarion
-
Codeforces 913G: Power Substring
Shared similar insights
- Consider it modulo a power of 10. by Solarion
- Say 10^50. Can you construct a number n modulo 5^50 such that 2^50 * n has the given substring? by Solarion
- Given this number n modulo 5^50, can you find r such that 2^r=n. This would solve the problem by Solarion
- This is the discrete logarithm problem, but here, we have that 2 is a primitive root mod 5^k for any k. by Solarion
- View ALL insights of this problem that are shared
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