Rosetta Problems

三值序列排序

https://www.acwing.com/problem/content/1363