大神的探险 之 寻找宝藏-题解--python DFS 摘要:解题思路:注意事项: 多组输入数据的处理参考代码:def dfs(x,y,t): global mintime,step if t > mint…… 题解列表 2022年03月05日 0 点赞 0 评论 532 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项: 一月份要单独考虑参考代码:a=list(map(int,input().split()))b=a[0]c=a[1]d=a[2]sum=0e=[31,29,31,30,31,30,…… 题解列表 2022年03月04日 0 点赞 0 评论 460 浏览 评分:0.0
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:a=input()b=[]for i in a: if i>='a' and i<'z'or i>='A' and …… 题解列表 2022年03月04日 0 点赞 0 评论 378 浏览 评分:0.0
Huffuman树费用--python 摘要:解题思路:注意事项:参考代码:def create_huffman(nums): cost = 0 while len(nums) > 1: pa = nums.…… 题解列表 2022年03月04日 0 点赞 0 评论 338 浏览 评分:0.0
翻硬币——python 摘要:解题思路: 相邻的若干对硬币总共只有三种状态: 1.独立的一对相同硬币 2.相邻的两对相反硬币 3.两对相反硬币中间夹着n对相同硬币 &nbs 题解列表 2022年03月04日 0 点赞 0 评论 863 浏览 评分:9.9
1238: 演讲大赛评分 摘要:解题思路:注意事项:参考代码:while True: try: ls=list(map(str,input().split())) name=ls[-1]…… 题解列表 2022年03月04日 0 点赞 0 评论 331 浏览 评分:9.0
编写题解 1237: 求组合数 摘要:解题思路:注意事项:参考代码:def get(x): s= 1 for i in range(1,x+1): s *= i return s 题解列表 2022年03月04日 0 点赞 0 评论 404 浏览 评分:9.9
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:def dayu(b,c,d): g = (-c + f) / (2 * b) h = (-c - f) / (2 * b) print("x1={:.…… 题解列表 2022年03月04日 0 点赞 0 评论 421 浏览 评分:0.0
编写题解 1235: 检查金币 摘要:解题思路:注意事项:参考代码:while True: try: n=int(input()) for a in range(9,12): &nb 题解列表 2022年03月04日 0 点赞 1 评论 296 浏览 评分: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 评论 374 浏览 评分:0.0