BAPC 2023 this is what i was able to do in a hour to test myself. problem set here: https://codeforces.com/gym/104790 archived: https://web.archive.org/web/20240510210222/https://codeforces.com/gym/104790