This problem is in Contest(s) below:
Contest 1081:Final Exam Contest for Programming & Languages Course(2026-1)