Viewing insights from Codeforces 1860D: Balanced String that are similar (thus shared) with only this insight from Codeforces 1834B: Maximum Strength: -When you compare two numbers, at each digit position the maximum strength you can get is 9-0 = 9. by fluffy_mango
- Think about the constraints. Why n=100? If it was a greedy, or prefix sum, or segment tree problem, n would probably be larger. by Solarion
- The greedy solution of taking the maximum change close to your wanted 0 difference passes the pretests, but fails on the main tests. 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