題序
題幹
Your program will be given an integer $X$. Find the smallest number larger than $X$ consisting of the same digits as $X$.
給你的程式一個整數 $X$ 。找出比 $X$ 大且和 $X$ 由一樣的數字構成的最小數。
輸入
The first line of input contains the integer $X\ (1≤X≤999999)$. The first digit in $X$ will not be a zero.
FHVirus changed 5 years agoView mode Like Bookmark