D - Dense Amidakuji Editorial /

Time Limit: 2 sec / Memory Limit: 256 MiB