This problem is in Contest(s) below:
Contest 1316:2024春周六c++c5
Contest 1423:2025暑期246晚c3