编写题解 2788: 晶晶赴约会python 摘要:解题思路:注意事项:参考代码:n = int(input()) if n <= 5: if n % 2 == 0: print("YES") else:   题解列表 2024年03月06日 0 点赞 0 评论 307 浏览 评分:0.0
最长公共子序列lcs 摘要:解题思路:注意事项:参考代码:def longestCommonSubsequence(text1, text2): # 创建一个二维数组 dp,用于存储最长公共子序列的长度 …… 题解列表 2024年03月06日 0 点赞 0 评论 180 浏览 评分:0.0
编写题解 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 评论 390 浏览 评分:0.0
温度转换题目 摘要:解题思路:注意事项:注意数据类型,f,c是双精度温度,输出为长浮点数型。参考代码:#include<stdio.h>int main(){ double f,c; scanf("%lf",…… 题解列表 2024年03月06日 0 点赞 0 评论 280 浏览 评分:0.0
动态规划思路详解-贪吃的大嘴 摘要:解题思路:注意事项:参考代码:def find_cakes(cakes, m): # 初始化动态规划数组,dp[i][j]表示前i个小蛋糕中选择若干个,美味度之和为j所需的最小数量 …… 题解列表 2024年03月06日 0 点赞 0 评论 147 浏览 评分:0.0
冒泡排序思想,直接比较大小 摘要:解题思路:使用冒泡排序思想,直接用strcmp()函数比较字符串大小即可参考代码:#include<stdio.h> #include<string.h> int main(){ char a…… 题解列表 2024年03月06日 0 点赞 0 评论 133 浏览 评分:0.0
计算一个整数N的阶乘-python 摘要:解题思路:递归解法,注意n=0的情况,阶乘也是1.注意事项:参考代码:def factorial(n): if n == 0: return 1 elif n =…… 题解列表 2024年03月06日 0 点赞 0 评论 181 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:void root1(float a, float b, float delta){ float m1=-(b/2/a); float m2= (pow(de…… 题解列表 2024年03月07日 0 点赞 0 评论 144 浏览 评分:0.0
过滤多余的空格 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; getline(cin,s); stri…… 题解列表 2024年03月07日 0 点赞 0 评论 264 浏览 评分:0.0