Rosetta Problems

ICPC 2024 miền Bắc - F: Independent Line

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