题目 1023: [编程入门]选择排序 摘要:解题思路:在未排序的数组元素中找出最小的元素,将最小元素与数组起始元素交换位置。从剩余未排序的数组元素中继续寻找最小的元素,将此元素与起始元素的下一个元素交换位置。继续从剩余未排序的数组元素中继续寻找…… 题解列表 2022年02月25日 0 点赞 0 评论 334 浏览 评分:0.0
蓝桥杯历届试题-回文数字 Python!! 摘要:解题思路:利用循环嵌套实现对10000~999999的遍历而各位数之和,我们可以先将其转换为字符串然后遍历字符串,遍历过程中将元素转换回整形,并将其相加与记录最后用字符串的正逆序输出判断是否对称完成注…… 题解列表 2022年02月25日 0 点赞 0 评论 322 浏览 评分:0.0
优质题解 python-找素数 摘要:解题思路:首先分析题目:问题1:数据较大,如果遍历依次判断素数的话,会超时。解决方法:埃拉托色尼筛选法。原文链接:https://blog.csdn.net/xiaoquantouer/article…… 题解列表 2022年02月25日 0 点赞 0 评论 733 浏览 评分:9.9
[编程入门]密码破译 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;const int N = 100;char A[N];in…… 题解列表 2022年02月25日 0 点赞 0 评论 1423 浏览 评分:9.9
python-排列式 摘要:解题思路:分析:积、乘数1、乘数2,的位数之和为9如此积只能为4位数。一个四位数可以分解为:①一个1位数*一个4位数②一个2位数*一个3位数如果积不是4位数,那么积、乘数1、乘数2,的位数之和得不到9…… 题解列表 2022年02月25日 0 点赞 0 评论 402 浏览 评分:9.3
求长方形面积 摘要:#include<stdio.h>/*(长+宽)*2=周长 长*宽=面积*/int main(){int c,k;//定义长方形长变量为c,宽为变量kint C=0,S=0;//定义周长变量为C和…… 题解列表 2022年02月25日 0 点赞 2 评论 1131 浏览 评分:9.9
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:要考虑数据的溢出,结果和中间变量都要考虑数据大小;注意事项:参考代码:import java.util.Scanner;public class Main { public static v…… 题解列表 2022年02月25日 0 点赞 0 评论 275 浏览 评分:0.0
三位数分解 摘要:解题思路:要找出个位,十位,百位参考代码:#include<stdio.h>int main(){ int a,b,c,d; scanf("%d",&a); b=a/100;; …… 题解列表 2022年02月25日 0 点赞 1 评论 739 浏览 评分:8.9
不同单词个数统计 摘要:``` import java.util.HashSet; import java.util.Scanner; public class Demo1487 { public static…… 题解列表 2022年02月25日 0 点赞 0 评论 326 浏览 评分:0.0
蓝桥杯算法提高VIP-Torry的困惑(提高型)——枚举 摘要:``` #include #include using namespace std; const int mod=5e4; bool prime(int x) { for (in…… 题解列表 2022年02月25日 1 点赞 0 评论 386 浏览 评分:0.0