E1. Erase and Extend (Easy Version) https://mirror.codeforces.com/problemset/problem/1537/E1
"We claim that it is optimal to choose a prefix of the string, then duplicate it until we have a length bigger than k, then delete the excess elements." (solution)
I don't know how to prove that we only need to append the prefix and duplicate multiple times then we can obtain the lexicographically smallest string. Even many people solved the problem intuitively but for me it doesn't work that way. I try to prove it instead accept it. However, I was stuck so long and frustrated at it. Can someone help me prove it please?







