日不落拓海海
日不落拓海海
全部文章
题解
归档
标签
去牛客网
登录
/
注册
日不落拓海海的博客
全部文章
/ 题解
(共58篇)
题解 | #百钱买百鸡问题#
while True: try: n=input() except: break else: for i in range(0,101): z=3*i # 鸡仔数量 res_mon...
Python3
2022-01-26
0
1
题解 | #DNA序列#
while True: try: dna = input() num = int(input()) except: break else: ratio = 0.0 new_dna =[] ...
Python3
2022-01-26
0
329
题解 | #单词倒排#
while True: try: string = input().strip() for word in string: if not word.isalpha(): string = string.r...
Python3
2022-01-26
0
351
题解 | #单词倒排#
while True: try: string = input() string+=" " //后面添加一个空格,用于应对句子最后一个字符是字符串而无法添加的情况 new_string = [] sub_str =[] ...
Python3
2022-01-26
0
366
题解 | #查找两个字符串a,b中的最长公共子串#
两遍遍历,数组查找 while True: try: s1= input() s2= input() if len(s1)> len(s2): s1,s2 = s2,s1 length=0 ...
Python3
2022-01-25
0
335
题解 | #名字的漂亮度#
while True: try: n = int(input()) num=[i for i in range(26,0,-1)] for i in range(n): lst=input() d...
Python3
2022-01-25
0
317
题解 | #简单密码#
while True: try: key_words = input() new_key = '' lst_alphla = [chr(97+i) for i in range(26)] for word in key_word...
Python3
2022-01-25
0
356
题解 | #在字符串中找出连续最长的数字串#
while True: try: str_in = input() s='' for w in str_in: if w.isalpha(): s+='*' els...
Python3
2022-01-23
0
325
题解 | #字符串字符匹配#
while True: try: short_str = input() long_str = input() for t in short_str: if long_str.count(t)==0: ...
Python3
2022-01-23
1
319
题解 | #字符串加密#
while True: try: key_word = input() string_in = input() new_key=[] letterlst = [] string_out ='' f...
Python3
2022-01-23
0
362
首页
上一页
1
2
3
4
5
6
下一页
末页