牛客749773961号
牛客749773961号
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
牛客749773961号的博客
全部文章
(共4篇)
题解 | #句子逆序#
print(' '.join(input().split()[::-1]))
2022-08-22
0
199
题解 | #DN***段#
a = input() j = 0 b = [] dna = ['A', 'T', 'C', 'G'] for i in range(len(a)): if a[i] in dna: j += 1 &n...
Python3
2022-06-27
0
372
题解 | #字符串编码#
a = input() if len(a) == 1: print(f'1{a}') b = '' j = 1 for i in range(1, len(a)): if a[i] == a[i-1]: ...
Python3
2022-06-24
0
316
题解 | #括号匹配深度#
a = input() alist = [] i = 0 for b in a: if b == '(': i += 1 else: ...
Python3
2022-06-23
1
310