第一题
输入:
随机字符,包含英文字母,数字以及特殊字符等ASCII范围内的字符。
输出:
输出字符中的数字字符,并按数字大小从小到大排序,重复数字不合并。
示例:
输入
3d50J Aa3
输出
0335
code:
while True:
try:
line = input()
ans = list(filter(str.isnumeric,line))
print(''.join(sorted(ans)))
except:
break
第二题:
是一组报文的题
code:
'''
5a 12 5b ba 34 5b bb 88 05 5a 75 cd bb 62 5a 34 cd 78 cc da fb 06 5a
'''
strs = input().strip().split(" ")
last_flag=0
tmp_num=[]
tmp_length=0
res_list=["5a"]
i=1
while(i<len(strs)):
#print(tmp_num,res_list)
if strs[i]=="5a":
target