1011: [编程入门]最大公约数与最小公倍数 摘要:参考代码:#include<stdio.h>int main(){ int m, n,i,k,f; scanf_s("%d %d", &m, &n); if (m > n) { k = m; m = …… 题解列表 2023年11月29日 0 点赞 0 评论 348 浏览 评分:8.0
矩阵交换行 摘要:解题思路:注意事项:参考代码:for i in range(5): ls = list(map(int, input().split())) a.append(ls)b = list(ma…… 题解列表 2023年11月30日 0 点赞 0 评论 600 浏览 评分:8.0
优质题解 题解 3173: 蓝桥杯2023年第十四届省赛真题-蜗牛(动态规划,Java) 摘要:解题思路:动态规划两个数组变量:// 坐标原点距竹子传送点最短时间 // minStart[i]代表坐标原点距第i个竹子上的传送点的最短时间,i从1开始 double[] minStart = n…… 题解列表 2023年12月02日 862 点赞 0 评论 10028 浏览 评分: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 评论 633 浏览 评分:8.0
2182: [编程入门]打印图案 c++萌新 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() {cout <<" *"<<endl;cout <<" * *"<…… 题解列表 2023年12月04日 0 点赞 0 评论 1414 浏览 评分:8.0
利用C++完成数组插入处理 摘要:解题思路:注意事项:参考代码:#include<iostream>#define TOTAL 10using namespace std;int array[TOTAL],insertnum;int …… 题解列表 2023年12月04日 0 点赞 0 评论 448 浏览 评分:8.0
题目 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码: #include #include int main() { int M,N; …… 题解列表 2023年12月07日 0 点赞 0 评论 345 浏览 评分:8.0
参考01背包 摘要:解题思路:容量换成甜度注意事项:只有一个值(甜度),只需要算对应格参考代码:#include<stdio.h>int main(){ int n,dp[100]={0},a,v; scan…… 题解列表 2023年12月08日 0 点赞 0 评论 541 浏览 评分:8.0
题解 2782: 整数大小比较 摘要:解题思路:无注意事项:要注意:c++中的“=”是“==”参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b;…… 题解列表 2023年12月09日 0 点赞 0 评论 464 浏览 评分: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 评论 464 浏览 评分:8.0