P16408 [Algo Beat Contest 004 D] Displaced Permutation 题解
简单题。
首先容易想到对整个序列询问
发现左移不太好做,容易想到对一个区间操作后第一个元素跑到了最后,因此按照
询问次数
Code
1 |
|
- Title: P16408 [Algo Beat Contest 004 D] Displaced Permutation 题解
- Author: Getaway_Car
- Created at : 2026-05-02 17:00:00
- Updated at : 2026-05-05 16:28:04
- Link: https://getawaycar1024.github.io/article/P16408-Algo-Beat-Contest-004-D-Displaced-Permutation-题解/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments