【复杂屎山代码】自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:try: n = int(input()) number = list(map(int, input().split())) m = int…… 题解列表 2023年11月17日 0 点赞 0 评论 245 浏览 评分:9.9
顶顶顶顶顶顶顶顶 摘要:参考代码:N, B = map(int, input().split()) cow_heights = [int(input()) for _ in range(N)] # 对奶牛身高降序排序…… 题解列表 2023年11月17日 0 点赞 0 评论 322 浏览 评分:9.9
一样的解法 摘要:MAX = 1000 dp = [[0.0, 0.0] for _ in range(MAX)] a = [0] * MAX n = int(input()) for i in range(1…… 题解列表 2023年11月17日 0 点赞 0 评论 281 浏览 评分:9.9
自定义函数之数字分离 摘要:解题思路:注意事项:注意审题,是每个数字间用空格隔开参考代码:number = input()for i in number: print(int(i), end = " ")…… 题解列表 2023年11月16日 0 点赞 0 评论 298 浏览 评分:9.9
蓝桥杯2014年第五届真题-斐波那契(Python题解) 摘要:解题思路:注意事项:参考代码:while True: try: n,m,p = map(int,input().split()) M = [[1,1],[1,0]] …… 题解列表 2023年11月16日 0 点赞 0 评论 500 浏览 评分:9.0
自定义函数之字符提取 摘要:text = input()t = "aeiou"r = ""for i in text: if i in t: r += iprint(r)…… 题解列表 2023年11月16日 0 点赞 0 评论 258 浏览 评分:0.0
简单C语言训练-数字母 摘要:```python s=input() c=0 for i in s: if i.isalpha(): //isalpha寻找字母 c+=1 print(c) …… 题解列表 2023年11月15日 0 点赞 0 评论 315 浏览 评分:0.0
金币内置for循环 摘要:解题思路:注意事项:参考代码:n = int(input())sum = 0coin_per = 0day = 0q = 0while n > q: day += 1 coin_per +…… 题解列表 2023年11月14日 0 点赞 0 评论 394 浏览 评分:9.9
储蓄简单方法 摘要:解题思路:注意事项:参考代码:sum = 0list1 = []count = 0sum_mom = 0flag = 1 #若不破产flag = 1for i in range(12): #12个月 …… 题解列表 2023年11月14日 0 点赞 0 评论 394 浏览 评分:6.0
深搜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…… 题解列表 2023年11月13日 0 点赞 0 评论 271 浏览 评分:0.0