current position:Home>Enter some non negative integers less than 10 and find the maximum integer composed of these numbers. It is required that each number is different from each other. Enter some non negative integers less than 10 and find the maximum integer composed of thes

Enter some non negative integers less than 10 and find the maximum integer composed of these numbers. It is required that each number is different from each other. Enter some non negative integers less than 10 and find the maximum integer composed of thes

2022-01-27 02:40:06 CSDN Q & A

Enter some less than 10 Non-negative integer , Find the largest integer composed of these numbers , The numbers are required to be different from each other




Refer to the answer 1:
lst = list(set(map(int, input().split())))lst.sort(reverse = True)for i in lst:    print(i, end='')



Refer to the answer 2:



Refer to the answer 3:
n=input().split() # Read , In the list, Spaces between numbers n=list(input()) # Read , In the list, No spaces between numbers ,1,2 Just keep one line n=list(set(n)) # duplicate removal n.sort(reverse=True) # Sort , From big to small print(*n,sep='')



Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270240040499.html

Random recommended