标签: 拓扑

1 篇文章

AT1984 [AGC001F] Wide Swap
Description 题目链接:AT1984[AGC001F] 给出一个元素集合为 ${1,2,\dots,N}$( $1\leq N\leq 500,000$)的排列 $P$,当有 $i,j (1\leq i<j\leq N)$满足$j-i\geq K (1\leq K\leq N-1)$ 且 $|P_{i}-P_{j}|==1∣$ 时,…