啄菜的鸡仔
啄菜的鸡仔
全部文章
题解
归档
标签
去牛客网
登录
/
注册
啄菜的鸡仔的博客
全部文章
/ 题解
(共10篇)
题解 | #迷宫问题#
python3 参考大佬视频 https://www.bilibili.com/video/BV1aM4y1M7sa?p=53&spm_id_from=333.880.my_history.page.click&vd_source=b778d4cfd0c0695092103876c2...
Python3
广度优先搜索
2022-06-28
6
488
题解 | #单词倒排#
python3简单解法 while True: try: s = input() for i in s: if not i.isalpha(): s = s.replace...
Python3
2022-06-21
0
238
题解 | #字符串加解密#
python3解题 def encryption(s1): tmp = [] for i in s1: if 'a'<=i<='z': if i == 'z': tmp.append('A') ...
Python3
2022-06-20
0
402
题解 | #查找兄弟单词#
python3简单快捷 做题思路 首先对于输入做处理,取得自己想要的值 split(‘ ’)根据一行中的空格,切割生成列表 列表下表取得自己想要的值 将输入的字符创排序后和X对比,排序后相同的但是没拍许前不同的是兄弟字符串 while True: try: lst = i...
Python3
2022-06-20
1
380
题解 | #汽水瓶#
python3递归思路 def func(n): h = n//3 n = (n//3)+(n%3) if n < 2: h +=0 elif n == 2: h +=1 else: h += func(n...
Python3
2022-06-17
1
406
题解 | #简单密码#
python3简单粗暴 def func(): s = input() res = [] tab = [['0'],['1'],['a','b','c'],['d','e','f'],['g','h','i'],['j','k','l'],['m','n','o'],['p'...
Python3
2022-06-17
2
760
题解 | #密码验证合格程序#
python3解法简单明了 def func(s): a = b = c = d = 0 #建立三种情况的列表 lst1 = [chr(i) for i in range(ord('A'), ord('Z') + 1)] #大写 lst2 = [chr(i) for ...
Python3
2022-06-16
0
445
题解 | #坐标移动#
python3解法 def func(): x = 0 y = 0 lst1 = ['A','D','W','S'] lst2 = [i for i in range(1,100)]#建立一个1~99的列表 lst3 = input().split(';') ...
Python3
2022-06-15
1
412
题解 | #进制转换#
进制转换 def hex(): while True: try: n = input() print(int(n,16)) except: break hex()
Python3
2022-06-10
2
883
题解 | #字符串分隔#
递归思路 #建立一个打印的函数,方便后面递归 def deal(str): n = len(str) if n == 0: return False elif n <= 8: print(str + (8-n)*'0') else...
Python3
2022-06-09
0
268