题解 2577: 蓝桥杯2020年第十一届省赛真题-走方格 摘要:#include int dp[32][32]; int main() { int n,m; scanf("%d%d",&n,&m); for(int i = 1;…… 题解列表 2022年03月29日 1 点赞 0 评论 508 浏览 评分:9.9
编写题解 1605: 蓝桥杯算法训练VIP-阿尔法乘积 摘要:#include<bits/stdc++.h>using namespace std;int a(int n,int sum){ if(n<10){ return n; } while(n!=0){…… 题解列表 2022年03月29日 0 点赞 0 评论 312 浏览 评分:0.0
辗转相减法——最大公约数与最小公倍数 摘要:解题思路:辗转相减法注意事项:参考代码:m,n=map(int,input().split())product=m*nwhile m!=n: p=max(m,n) q=min(m,n) …… 题解列表 2022年03月29日 0 点赞 0 评论 650 浏览 评分:8.0
python 编写题解 1483: 蓝桥杯算法提高VIP-数组替换 摘要:解题思路:注意事项:参考代码:def f(a, x, b, y): if y>=len(a)-x: a=a[:x]+b[:y] else: a=a[:x]+b[…… 题解列表 2022年03月29日 0 点赞 0 评论 434 浏览 评分:9.9
蓝桥杯算法提高VIP-选择排序(非递归100分) 摘要:```cpp #include #include #include #include #include #include #include #include using name…… 题解列表 2022年03月29日 0 点赞 0 评论 395 浏览 评分:0.0
有手就行之排序问题 摘要:解题思路:冒泡排序注意事项:注意冒的泡泡参考代码:#include<stdio.h>int main(){ int a[4]; int i,j,t; for(i=0;i<4;i++)…… 题解列表 2022年03月29日 0 点赞 0 评论 643 浏览 评分:9.9
多个无序数按从小到大排序(以10个数为例子) 摘要:解题思路:先读入这多个无序数将其放入数组里,然后for循环遍历数组求出来无序数中的最大的那一个max。接下来同样遍历求出来最小的值min,每次求出来一个数组的最小值就输出,之后标记这个最小值在数组中的…… 题解列表 2022年03月29日 0 点赞 0 评论 533 浏览 评分:0.0
python 编写题解 1484: 蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:from math import sqrta,b,c=map(float,input().split())A=sqrt(b**2-4*a*c)n=(-b+A)/(2*a)…… 题解列表 2022年03月29日 0 点赞 0 评论 410 浏览 评分:9.9
题解 1717: 数据结构-简单选择排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int min(int a[], int n, int i) //判断最小值是数组中的哪个数 { int j; …… 题解列表 2022年03月29日 0 点赞 0 评论 306 浏览 评分:0.0