競技プログラミングメモ
AtCoder
競プロ典型90問 032
コード
問題
\(10! \simeq 3.6 \times 10^6\) なので総当りで問題ない.
Back