Description: .3.1 6174 Suppose you have a question you mutually different four-digit number, all the figures obtained from the small sort a, from small to large to give b, and then replace the original number of ab and continue operation. For example, starting from 1234, followed by can get 4321-1234 = 3087,8730-378 = 8352,8532-2358 = 6174. Interestingly ,7641-1467 = 6174, back to its own. An n-bit input and output sequence of operations until the cycle (ie, the number of newly acquired ever get over). Enter the guarantee before the loop will only produce 1,000 integers. Sample Input: 1234 Sample Output: 1234-> 3087-> 8352-> 6174-> 6174
To Search:
File list (Check if you may need any files):
6174问题.cbp
6174问题.depend
6174问题.layout
main.cpp