Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
67124 | 胡海峰老师 | 分割排序 | Python3 | Accepted | 44 MS | 3772 KB | 275 | 2024-03-14 17:06:58 |
nums = input().split('5') def convert(a): b =[] for ele in a: if ele: b.append(int(ele)) b.sort() b = [str(x) for x in b] return b while nums: res = convert(nums) print(' '.join(res)) nums = input().split('5')