892.md (373B)
1 Source: https://codeforces.com/blog/entry/55841 2 3 Tutorial is loading... 4 5 Tutorial is loading... 6 7 Tutorial is loading... 8 9 Tutorial is loading... 10 11 Tutorial is loading... 12 13 Tutorial is loading... 14 15 also there's another solution using dp by [KAN](/profile/KAN "Grandmaster KAN") : [32407269](/contest/891/submission/32407269 "Submission 32407269 by KAN") 16 17 Tutorial is loading...