题解列表
自定义函数之数字分离
摘要:解题思路:注意事项:注意审题,是每个数字间用空格隔开参考代码:number = input()for i in number: print(int(i), end = " ")……
蓝桥杯2014年第五届真题-斐波那契(Python题解)
摘要:解题思路:注意事项:参考代码:while True: try: n,m,p = map(int,input().split()) M = [[1,1],[1,0]] ……
自定义函数之字符提取
摘要:text = input()t = "aeiou"r = ""for i in text: if i in t: r += iprint(r)……
简单C语言训练-数字母
摘要:```python
s=input()
c=0
for i in s:
if i.isalpha(): //isalpha寻找字母
c+=1
print(c)
……
深搜dfs,python不容易过
摘要:d=[(-1,-2),(1,-2),(-2,-1),(2,-1),(-2,1),(2,1),(-1,2),(1,2)]
def dfs(x,y,s):
global res
if……
链表报数问题(Python)
摘要:解题思路:注意事项:参考代码:def find_last_person(n): people = list(range(1, n + 1)) current = 0 # 当前报数人的……
python编写a%b
摘要:解题思路:跟a+b一样的思路只是改运算符,具体注意事项参照a+b参考代码:while True: try: a,b=map(int,input().strip().split()) print(a……