$1, \ldots, n$ を並び替えた数列を、隣同士の入れ替えを適当な順番でちょうど1回ずつ行ってもとに戻すことが可能か判定する。
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.