Rosetta Problems

ICPC 2023 vòng Quốc gia - E: Extended Ping Pong

https://oj.vnoi.info/problem/icpc23_national_e