Explain this problem
Can someone explain for me this problem? https://codeforces.me/contest/681/problem/D
ABC 483 problems EFG (part 2)