1259: 送分题素数 摘要:解题思路:注意事项:参考代码:from math import * arr = [] for i in range(100, 201): for j in range(2, ceil(s…… 题解列表 2024年04月07日 0 点赞 0 评论 439 浏览 评分:0.0
八行简便 编写题解 2850: 输出亲朋字符串 摘要:解题思路:字符串与码的结合注意事项:下标大小参考代码:a=list(input())n=len(a)c=[]for i in range(n): b=chr(ord(a[i-1])+ord(a[…… 题解列表 2024年04月06日 0 点赞 0 评论 497 浏览 评分:0.0
三行简便 编写题解 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:用于一排数值注意事项:a=list(map(int,input().split()))参考代码:n=int(input())a=list(map(int,input().split()))p…… 题解列表 2024年04月06日 0 点赞 0 评论 513 浏览 评分:0.0
五行简便 编写题解 2795: 财务管理 摘要:解题思路:列表注意事项:之间没空格参考代码:a=[]for i in range(12): b=float(input()) a.append(b)print('$',&#…… 题解列表 2024年04月06日 0 点赞 0 评论 437 浏览 评分:0.0
六行简便 编写题解 2835: 计算书费 摘要:解题思路:a=list(map(int,input().split()))注意事项:s=s+a[i]*b[i]参考代码:a=list(map(int,input().split()))b=[28.9,…… 题解列表 2024年04月06日 0 点赞 0 评论 411 浏览 评分:0.0
六行简便 编写题解 2794: 求平均年龄 摘要:解题思路:a=list(map(int,input().split()))注意事项:将输入一行表示参考代码:n=int(input())a=list(map(int,input().split()))…… 题解列表 2024年04月06日 2 点赞 0 评论 1378 浏览 评分:10.0
蓝桥杯2022年第十三届省赛真题-全排列的价值(python) 摘要:## 一组逆序、顺序全排列价值和为定值n*(n-1)/2 ## 一共n!/2组全排列(n!种) 参考代码: ## 全排列的价值 n=int(input()) s=n*(n-1)/4 for…… 题解列表 2024年04月05日 0 点赞 0 评论 814 浏览 评分:9.9
1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:import math N = int(input()) arr = [True] * (N + 1) for i in range(2, int(math.sqr…… 题解列表 2024年04月05日 0 点赞 0 评论 369 浏览 评分:0.0
蓝桥杯2022年第十三届决赛真题-取模(Python组)(简单直白) 摘要:解题思路: 思路很简单,有注释。 注意事项: 参考代码: ## 取模 T=int(input()) nums=[list(map(int,input().strip().split…… 题解列表 2024年04月04日 0 点赞 0 评论 790 浏览 评分:9.9
八行简便 编写题解 2774: 计算三角形面积 摘要:解题思路:海伦公式,p=0.5*(a+b+c)注意事项:import math参考代码:import mathx1,y1,x2,y2,x3,y3=map(float,input().split())a…… 题解列表 2024年04月04日 0 点赞 0 评论 548 浏览 评分:0.0