Input:
5 1 2 2 1 3 3 2 4 5 1 3 1 3
Answer:
1 2 3 4 5
以下题解输出错误:
https://www.luogu.com.cn/article/gg4exchg
https://www.luogu.com.cn/article/vblm8ce5
https://www.luogu.com.cn/article/3waattdm
https://www.luogu.com.cn/article/ppgg4isl
https://www.luogu.com.cn/article/7z8o234t
错误的题解均输出 1 2 4 3 5。
1 2 4 3 5