优质题解 题解 3173: 蓝桥杯2023年第十四届省赛真题-蜗牛(动态规划,Java) 摘要:解题思路:动态规划两个数组变量:// 坐标原点距竹子传送点最短时间 // minStart[i]代表坐标原点距第i个竹子上的传送点的最短时间,i从1开始 double[] minStart = n…… 题解列表 2023年12月02日 785 点赞 0 评论 5635 浏览 评分:8.0
2946: 数制转换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;char s[1000];int a[1…… 题解列表 2023年12月02日 0 点赞 0 评论 534 浏览 评分:8.0
2182: [编程入门]打印图案 c++萌新 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {cout <<" *"<<endl;cout <<" * *"<…… 题解列表 2023年12月04日 0 点赞 0 评论 1301 浏览 评分:8.0
利用C++完成数组插入处理 摘要:解题思路:注意事项:参考代码:#include<iostream>#define TOTAL 10using namespace std;int array[TOTAL],insertnum;int …… 题解列表 2023年12月04日 0 点赞 0 评论 365 浏览 评分:8.0
题目 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码: #include #include int main() { int M,N; …… 题解列表 2023年12月07日 0 点赞 0 评论 261 浏览 评分:8.0
参考01背包 摘要:解题思路:容量换成甜度注意事项:只有一个值(甜度),只需要算对应格参考代码:#include<stdio.h>int main(){ int n,dp[100]={0},a,v; scan…… 题解列表 2023年12月08日 0 点赞 0 评论 440 浏览 评分:8.0
题解 2782: 整数大小比较 摘要:解题思路:无注意事项:要注意:c++中的“=”是“==”参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b;…… 题解列表 2023年12月09日 0 点赞 0 评论 383 浏览 评分:8.0
短除法解题 摘要:解题思路:两正整数m,n最大公因数A最小公倍数B如上80=16*5,75=15*5其中 5 为80,75的最大公因数两者的最小公倍数为 16*15*5 或者说 (80/5)*(75/5)*5从上面的例…… 题解列表 2023年12月10日 0 点赞 1 评论 325 浏览 评分:8.0
字符与ascll码值的转换 摘要:解题思路:注意事项:补充题解中Python代码空缺参考代码:print(ord("t"))print(chr(63))…… 题解列表 2023年12月12日 0 点赞 2 评论 708 浏览 评分:8.0
二叉树遍历(python) 摘要:解题思路:注意事项:参考代码:# 定义树节点的数据结构class TreeNode: def __init__(self, val): self.val = val …… 题解列表 2023年12月17日 0 点赞 0 评论 352 浏览 评分:8.0