032 - AtCoder Ekiden(★3)
next_permutation
https://atcoder.jp/contests/typical90/submissions/59454165