牛客543622112号
牛客543622112号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客543622112号的博客
全部文章
/ 题解
(共5篇)
题解 | #四则运算#
s = input() s = s.replace("{", "(") s = s.replace("}", ")") s = s.replace("[", "(") s = s.replace("]", ")") print(int(eval(s)))
Python3
2021-10-04
214
12586
题解 | #字符串排序#
l = [] while True: try: lines = int(input()) for i in range(lines): da = input() l.append(da) except: ...
Python3
2021-10-03
0
440
题解 | #合并表记录#
dict0 = {} li0 = [] li1 = [] while True: try: lines = int(input()) for i in range(lines): da = input() li ...
Python3
2021-10-03
0
392
题解 | #提取不重复的整数#
s = input() li = list(s[::-1]) li0 = [] for i in li: if i not in li0: li0.append(i) print(''.join(li0))
Python3
2021-10-03
0
648
题解 | #倒置字符串#
s = input() sum = len(s) r = "" j = sum for i in range(0,sum): if s[sum - i - 1] == " ": r = r + " " + s[sum - i: j] j = sum - i -...
Python3
2021-10-02
1
530