good problem from Atcoder
Hello ! I'm stuck in this interesting problem I'm writing this because I didn't find the editorial (english version) Any help! Thanks