题解 1717: 数据结构-简单选择排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int min(int a[], int n, int i) //判断最小值是数组中的哪个数 { int j; …… 题解列表 2022年03月29日 0 点赞 0 评论 565 浏览 评分:0.0
多个无序数按从小到大排序(以10个数为例子) 解题思路:先读入这多个无序数将其放入数组里,然后for循环遍历数组求出来无序数中的最大的那一个max。接下来同样遍历求出来最小的值min,每次求出来一个数组的最小值就输出,之后标记这个最小值在数组中的位置然后将max+t(t初始值为1,每次运算之后t++)值赋给这个最小值。 题解列表 2022年03月29日 0 点赞 0 评论 754 浏览 评分:0.0
蓝桥杯算法提高VIP-选择排序(非递归100分) ```cpp#include#include#include#include#include#include#include#includeusingnamespacestd;intmain(){intn,a[100],mina=100,flag;cin>>n;for(inti=0;i 题解列表 2022年03月29日 0 点赞 0 评论 605 浏览 评分:0.0 python 编写题解 1487: 蓝桥杯算法提高VIP-不同单词个数统计 摘要:解题思路:集合自动去重 &nb 题解列表 2022年03月29日 0 点赞 0 评论 743 浏览 评分:0.0 编写题解 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 评论 519 浏览 评分:0.0 不知道哪里错了,先放这里吧 摘要:解题思路:注意事项:参考代码:package 练习; import java.util.*; public class Main { static Scanner sc = new S…… 题解列表 2022年03月29日 0 点赞 1 评论 479 浏览 评分:0.0 没什么好说的,用用long long就可 摘要:解题思路:输入的数%10取出最低位,然后/10去掉最低位,然后OK了注意事项:要用long long!!!!!!!!!!!!!!!!!!参考代码:#include<stdio.h>#include<m…… 题解列表 2022年03月29日 0 点赞 0 评论 575 浏览 评分:0.0 Sn的公式求和题解(C语言代码) 摘要:解题思路:首先要明白运用的语句 肯定是while循环 然后在用公式代换出来 Sn=2+22+222+2222+... 可以理解为 n个2加上(n-1)个20 加上(n-2)个200 一直加到 1*…… 题解列表 2022年03月29日 0 点赞 0 评论 757 浏览 评分:0.0 不用临时变量 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())li=list(map(int,input().split()))for i in range(m): x,…… 题解列表 2022年03月29日 0 点赞 0 评论 545 浏览 评分:0.0 « 12...2021202220232024202520262027...59235924 »
编写题解 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 评论 519 浏览 评分:0.0
不知道哪里错了,先放这里吧 摘要:解题思路:注意事项:参考代码:package 练习; import java.util.*; public class Main { static Scanner sc = new S…… 题解列表 2022年03月29日 0 点赞 1 评论 479 浏览 评分:0.0
没什么好说的,用用long long就可 摘要:解题思路:输入的数%10取出最低位,然后/10去掉最低位,然后OK了注意事项:要用long long!!!!!!!!!!!!!!!!!!参考代码:#include<stdio.h>#include<m…… 题解列表 2022年03月29日 0 点赞 0 评论 575 浏览 评分:0.0
Sn的公式求和题解(C语言代码) 摘要:解题思路:首先要明白运用的语句 肯定是while循环 然后在用公式代换出来 Sn=2+22+222+2222+... 可以理解为 n个2加上(n-1)个20 加上(n-2)个200 一直加到 1*…… 题解列表 2022年03月29日 0 点赞 0 评论 757 浏览 评分:0.0
不用临时变量 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())li=list(map(int,input().split()))for i in range(m): x,…… 题解列表 2022年03月29日 0 点赞 0 评论 545 浏览 评分:0.0