编写题解 1119: C语言训练-"水仙花数"问题1(循环解决) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,c=0; scanf("%d", &n); int t = n; while (n != 0) …… 题解列表 2024年03月06日 1 点赞 0 评论 724 浏览 评分:10.0
动态规划思路详解-贪吃的大嘴 摘要:解题思路:注意事项:参考代码:def find_cakes(cakes, m): # 初始化动态规划数组,dp[i][j]表示前i个小蛋糕中选择若干个,美味度之和为j所需的最小数量 …… 题解列表 2024年03月06日 0 点赞 0 评论 270 浏览 评分:0.0
温度转换题目 摘要:解题思路:注意事项:注意数据类型,f,c是双精度温度,输出为长浮点数型。参考代码:#include<stdio.h>int main(){ double f,c; scanf("%lf",…… 题解列表 2024年03月06日 0 点赞 0 评论 487 浏览 评分:0.0
编写题解 2791: 计算邮资python 摘要:参考代码:r, s = input().split() r = int(r) money = 8 if r > 1000: money += (r-1000)//500*4 …… 题解列表 2024年03月06日 0 点赞 0 评论 506 浏览 评分:10.0
dfs标记路径 摘要:参考代码:import java.util.Scanner;public class Main {static int[][] g=new int[51][51];//地图static int[][]…… 题解列表 2024年03月06日 0 点赞 0 评论 332 浏览 评分: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 评论 651 浏览 评分: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 评论 559 浏览 评分:0.0
最长公共子序列lcs 摘要:解题思路:注意事项:参考代码:def longestCommonSubsequence(text1, text2): # 创建一个二维数组 dp,用于存储最长公共子序列的长度 …… 题解列表 2024年03月06日 0 点赞 0 评论 346 浏览 评分:0.0
编写题解 2788: 晶晶赴约会python 摘要:解题思路:注意事项:参考代码:n = int(input()) if n <= 5: if n % 2 == 0: print("YES") else:   题解列表 2024年03月06日 0 点赞 0 评论 530 浏览 评分:0.0
编写题解 2787: 有一门课不及格的学生 摘要:解题思路:判断语句注意事项:判断他是否恰好有一门课不及格参考代码:ch, ma = map(int, input().split()) if ch < 60 and ma >= 60 : …… 题解列表 2024年03月06日 1 点赞 0 评论 710 浏览 评分:4.0