[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:a=input()b=[]for i in a: if i>='a' and i<'z'or i>='A' and …… 题解列表 2022年03月04日 0 点赞 0 评论 282 浏览 评分:0.0
Huffuman树费用--python 摘要:解题思路:注意事项:参考代码:def create_huffman(nums): cost = 0 while len(nums) > 1: pa = nums.…… 题解列表 2022年03月04日 0 点赞 0 评论 224 浏览 评分:0.0
翻硬币——python 摘要:解题思路: 相邻的若干对硬币总共只有三种状态: 1.独立的一对相同硬币 2.相邻的两对相反硬币 3.两对相反硬币中间夹着n对相同硬币 &nbs 题解列表 2022年03月04日 0 点赞 0 评论 719 浏览 评分:9.9
1238: 演讲大赛评分 摘要:解题思路:注意事项:参考代码:while True: try: ls=list(map(str,input().split())) name=ls[-1]…… 题解列表 2022年03月04日 0 点赞 0 评论 267 浏览 评分:9.0
编写题解 1237: 求组合数 摘要:解题思路:注意事项:参考代码:def get(x): s= 1 for i in range(1,x+1): s *= i return s 题解列表 2022年03月04日 0 点赞 0 评论 343 浏览 评分:9.9
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:def dayu(b,c,d): g = (-c + f) / (2 * b) h = (-c - f) / (2 * b) print("x1={:.…… 题解列表 2022年03月04日 0 点赞 0 评论 335 浏览 评分:0.0
编写题解 1235: 检查金币 摘要:解题思路:注意事项:参考代码:while True: try: n=int(input()) for a in range(9,12): &nb 题解列表 2022年03月04日 0 点赞 1 评论 209 浏览 评分:4.0
编写题解 1236: 母牛生小牛 摘要:解题思路:注意事项:参考代码:两种解法n=int(input()) ls=[1,1,1] if n <=3: print(1) else: for i in range(n-…… 题解列表 2022年03月04日 0 点赞 0 评论 311 浏览 评分:0.0
Python解决 ——2010辽宁省决赛 摘要:解题思路:1.按照题目要求分别用列表来装数据 2.分别筛选出A和B的交集,以及前者和C的交集的结果,然后用C减去 3.如果这个列表为空,则输出“No enemy spy”,反之,输出列表中的结果。注意…… 题解列表 2022年03月04日 0 点赞 0 评论 238 浏览 评分:0.0
二分法模块的使用,python 摘要:# MarkDown编辑器基本使用说明 **如果这是您第一次使用MarkDown编辑器,建议先阅读这篇文章了解一下Markdown的基本使用方法。** ## 解题思路 **1…… 题解列表 2022年03月04日 0 点赞 2 评论 487 浏览 评分:9.9