八种排序算法(python实现) 摘要:""" 以下是八种升序排序算法模板 分为初级排序算法和高级排序算法 初级排序算法:插入排序,选择排序,冒泡排序 高级排序算法:归并排序,快速排序,希尔排序,堆排序,桶排序 时间复杂度: …… 题解列表 2022年02月03日 1 点赞 0 评论 1138 浏览 评分:9.9
[编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; int main(){ int n,k,i,m; cin>>n; int a[n…… 题解列表 2022年02月03日 0 点赞 0 评论 466 浏览 评分:0.0
优质题解 Hifipsysta-1096-蛇行矩阵(C++代码)超详细的双递归数列解题步骤 ###解题思路:####1.总结出每一行的规律#####首先看第0行:$$a_0=1$$$$a_1=a_0+2=1+2=3$$$$a_2=a_1+3=3+3=6$$$$a_3=a_2+4=6+4=10$$可知规律为:```latex\begin{cases}a_0=1;\\a_n=a_{n-1}+(n 题解列表 2022年02月03日 0 点赞 5 评论 1683 浏览 评分:8.9
Hifipsysta-1139题-C语言训练-求素数问题(C++代码) 摘要:```cpp #include using namespace std; bool is_prime(int n){ for(int i=2;i>n; for(int…… 题解列表 2022年02月03日 0 点赞 0 评论 480 浏览 评分:0.0
通过取余,循环来实现各种不同输入情况的对应密码 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(){ string s; cin…… 题解列表 2022年02月02日 0 点赞 0 评论 504 浏览 评分:0.0
数据结构-静态表的顺序查找(加油,可以的!) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int search(int arry[],int t,int n){ int i=0; arry[-1]=t;//t为要找的值 fo…… 题解列表 2022年02月02日 0 点赞 0 评论 777 浏览 评分:0.0
Cylinder(C++代码) 摘要:解题思路:注意事项:1.double类型 2.w>0参考代码:#include <iostream>#define PI 3.141592653589793238#inc…… 题解列表 2022年02月02日 0 点赞 0 评论 785 浏览 评分:0.0
1064: 二级C语言-阶乘数列 摘要:解题思路:比较简单的输出方法。注意事项:1.结果数据比较大,用 double或long double 类型比较合适。 2.使用scientific进行科学计算法输出,需添加…… 题解列表 2022年02月02日 0 点赞 0 评论 522 浏览 评分:0.0
[CSP-J2019] 数字游戏 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; int main(){ string s; cin>>s; int i,l,t=…… 题解列表 2022年02月02日 0 点赞 0 评论 581 浏览 评分:9.9
【蓝桥杯】【python】能量项链 解题思路:最初分析题目发现,只要每次都把最小值放在中间,例如:题目中给出的数据,第一步就把2给放在中间,进行间接消除;然后再依次寻找最小值进行消除。所以首先写一个函数,用于输入最小值的位置信息后,计算得到聚合能量操作后得到的能量以及项链编号:注:我这边项链编号信息等用的是全局变量, 题解列表 2022年02月02日 0 点赞 0 评论 676 浏览 评分:9.9