٩(•̤̀ᵕ•̤́๑)ᵒᵏᵎᵎᵎᵎ
٩(•̤̀ᵕ•̤́๑)ᵒᵏᵎᵎᵎᵎ
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
٩(•̤̀ᵕ•̤́๑)ᵒᵏᵎᵎᵎᵎ的博客
全部文章
(共15篇)
题解 | #兔子的数量#
def num_robbet(n): if n== 1: return 2 if n==2: return 3 return num_robbet(n-1)+num_robbet(n-2) print(num_robbet(int(input...
2024-01-14
0
180
题解 | #字符子串的查找#
kk=input() if 'NiuNiu' in kk: print(kk.index('NiuNiu')) else: print(-1)
2024-01-13
1
245
题解 | #增加元组的长度#
a =tuple(range(1,6)) b =tuple(range(6,11)) print(a,len(a),a+b,len(a+b),sep="\n")
2024-01-13
0
175
题解 | #增加元组的长度#
a=1,2,3,4,5 b=6,7,8,9,10 print(a,len(a),a+b,len(a+b),sep="\n")
2024-01-13
0
142
题解 | #输出前三同学的成绩#
listy=tuple(str(input()).split()) print(listy[0:len(listy)if len(listy)-3<0 else 3])
2024-01-13
0
181
题解 | #跳过列表的某个元素#
for c in range(1,16): if c !=13: print(c,end=" ")
2024-01-13
0
191
题解 | #提前结束的循环#
im=[3, 45, 9, 8, 12, 89, 103, 42, 54, 79] ss=input() for c in im: if c == int(ss): break else: print(c)
2024-01-13
0
149
题解 | #格式化清单#
a=['apple', 'ice cream', 'watermelon', 'chips', 'hotdogs', 'hotpot'] while(len(a)!=0): a.pop() print(a)
2024-01-13
0
156
题解 | #2的次方数#
a=[] for c in range(1,11): a.append(2**c) for k in a: print(k)
2024-01-13
0
176
题解 | #禁止重复注册#
new_users = ["GurR", "Niu Ke Le", "LoLo", "Tuo Rui Chi"] current_users = ["Niuniu".lower(), "Ni...
2024-01-13
0
170
首页
上一页
1
2
下一页
末页