编写题解 2791: 计算邮资python 摘要:参考代码:r, s = input().split() r = int(r) money = 8 if r > 1000: money += (r-1000)//500*4 …… 题解列表 2024年03月06日 0 点赞 0 评论 413 浏览 评分:10.0
dfs标记路径 摘要:参考代码:import java.util.Scanner;public class Main {static int[][] g=new int[51][51];//地图static int[][]…… 题解列表 2024年03月06日 0 点赞 0 评论 221 浏览 评分:9.9
编写题解 2790: 分段函数python 摘要:参考代码:N = float(input()) if N >= 0 and N < 5: print("%.3f" %(-N+2.5)) elif N >= 5 and N < 10:…… 题解列表 2024年03月06日 0 点赞 0 评论 549 浏览 评分:9.9
编写题解 2789: 骑车与走路python 摘要:参考代码:n = int(input()) if n/3+50 == n/1.2: print("All") if n/3+50 > n/1.2: print("Walk")…… 题解列表 2024年03月06日 0 点赞 0 评论 429 浏览 评分:0.0
最长公共子序列lcs 摘要:解题思路:注意事项:参考代码:def longestCommonSubsequence(text1, text2): # 创建一个二维数组 dp,用于存储最长公共子序列的长度 …… 题解列表 2024年03月06日 0 点赞 0 评论 225 浏览 评分:0.0
编写题解 2788: 晶晶赴约会python 摘要:解题思路:注意事项:参考代码:n = int(input()) if n <= 5: if n % 2 == 0: print("YES") else:   题解列表 2024年03月06日 0 点赞 0 评论 377 浏览 评分:0.0
编写题解 2787: 有一门课不及格的学生 摘要:解题思路:判断语句注意事项:判断他是否恰好有一门课不及格参考代码:ch, ma = map(int, input().split()) if ch < 60 and ma >= 60 : …… 题解列表 2024年03月06日 1 点赞 0 评论 593 浏览 评分:4.0
最长不下降子序列的长度 摘要:解题思路:注意事项:参考代码:def lengthOfLIS(nums): if len(nums) <= 1: return len(nums) dp =…… 题解列表 2024年03月06日 0 点赞 0 评论 269 浏览 评分:0.0
编写题解 2845: 求10000以内n的阶乘 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; import java.math.BigInteger; public class Main { …… 题解列表 2024年03月06日 0 点赞 0 评论 298 浏览 评分:9.9
2775: 等差数列末项计算python题解 摘要:解题思路:等差数列通项公式注意事项:先算公差参考代码:a1, a2, n = map(int, input().split()) d = a2-a1 an = a1+(n-1)*d print(…… 题解列表 2024年03月06日 0 点赞 0 评论 412 浏览 评分:9.9