IMPACT Olympiad for teachers and coaches 2022 Problem G
Can anyone solve this? Problem G
ICPC NA North Central and South Division