牛客234107578号
牛客234107578号
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
牛客234107578号的博客
全部文章
(共3篇)
题解 | #字符串合并处理#
python3 s = list(input().replace(' ', '')) s[::2] = sorted(s[::2]) s[1::2] = sorted(s[1::2]) res = [] for i in s: try: res.append(hex(int(...
Python3
2022-05-13
0
140
题解 | #简单密码#
python3 dic = {'abc':'2','def':'3','ghi':'4','jkl':'5','mno':'6','pqrs':'7','tuv':'8','wxyz':'9'} s = input() res = [] for i in s: if i.isdigit():...
Python3
2022-05-13
0
154
题解 | #坐标移动#
python3 瞎写的 move_lis = input().split(';') move_dic = {'A':[0, '-'], 'D':[0, '+'], 'W':[1, '+'], 'S':[1, '-']} co = [0,0] for move in move_lis: if ...
Python3
2022-05-12
0
145