简单代码6666666666 摘要:解题思路:注意事项:参考代码:print("%0.2f"%((25+15)*(150*2/15)/2))还是用python一行解决方便…… 题解列表 2023年11月17日 0 点赞 0 评论 345 浏览 评分:9.9
1013:Sn的公式求和 摘要:解题思路先用for循环把几个2表示出来,再用一个变量进行累加求和即可。注意事项:参考代码:n = int(input())a = 0sum = 0for i in range(n): a = 2…… 题解列表 2023年11月17日 0 点赞 0 评论 183 浏览 评分:0.0
【复杂屎山代码】自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:try: n = int(input()) number = list(map(int, input().split())) m = int…… 题解列表 2023年11月17日 0 点赞 0 评论 159 浏览 评分:9.9
顶顶顶顶顶顶顶顶 摘要:参考代码:N, B = map(int, input().split()) cow_heights = [int(input()) for _ in range(N)] # 对奶牛身高降序排序…… 题解列表 2023年11月17日 0 点赞 0 评论 186 浏览 评分: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 评论 163 浏览 评分:9.9
自定义函数之数字分离 摘要:解题思路:注意事项:注意审题,是每个数字间用空格隔开参考代码:number = input()for i in number: print(int(i), end = " ")…… 题解列表 2023年11月16日 0 点赞 0 评论 167 浏览 评分:9.9
蓝桥杯2014年第五届真题-斐波那契(Python题解) 摘要:解题思路:注意事项:参考代码:while True: try: n,m,p = map(int,input().split()) M = [[1,1],[1,0]] …… 题解列表 2023年11月16日 0 点赞 0 评论 355 浏览 评分:9.0
自定义函数之字符提取 摘要:text = input()t = "aeiou"r = ""for i in text: if i in t: r += iprint(r)…… 题解列表 2023年11月16日 0 点赞 0 评论 149 浏览 评分: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 评论 205 浏览 评分:0.0
金币内置for循环 摘要:解题思路:注意事项:参考代码:n = int(input())sum = 0coin_per = 0day = 0q = 0while n > q: day += 1 coin_per +…… 题解列表 2023年11月14日 0 点赞 0 评论 288 浏览 评分:9.9