Codeforces Round 937 (Div. 4) E. Nearly Shortest Repeating Substring Code : Nearly Shortest Repeating Substring G. Shuffling Songs Code : Shuffling Songs