#41131: 簡單解


seancai78@gmail.com (風月春秋)


其實不追求高速的話很簡單
連queue都不用
C++ algorithm庫有next_permutation()函式

詳細應用看
next_permutation()
只用陣列的解法