Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67041 胡海峰老师 数字排序及映射 Python3 Accepted 30 MS 3792 KB 351 2024-03-13 10:54:25

Tests(4/4):


Code:

""" input 9,12,15,22,5,21,214 output 7 5 214,22,21,15,12,9,5 ILOVEU* """ a = input().split(',') b = [int(x) for x in a] print(len(a)) print(min(b)) c = sorted(b,reverse=True) c =[str(x) for x in c] print(",".join(c)) text ="" for ele in b: if 1<=ele<=26: text += chr(ele+64) else: text +='*' print(text)