题解列表

筛选

计数排序思想求解

摘要:解题思路:利用计数排序思想,输出时,直接输出计数数组的值即可,这里多申请一个数组用来做输出时的标记注意事项:用到排序算法记得加头文件参考代码:                             ……

蓝桥杯专题系列-1431(Python)

摘要:解题思路:模拟题,了解运作过程即可注意事项:使用lst.copy()静态改写列表,不要动态改写参考代码:n = int(input())lst = list(reversed(list((map(in……

自定义函数求一元二次方程

摘要:解题思路:注意事项:1、当判别式小于0时,会出现虚数;2、最终结果要保留三位小数;3、两个解是以空格分隔的。参考代码:a,b,c = map(int,input().split())d = b**2-……

DNA(Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main{ public static void main(String[] ……

题目 1115: DNA----题解

摘要:解题思路:注意事项:参考代码:Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a,b; String arr[][]……

1268: 第K极值

摘要:```cpp #include using namespace std; const int maxn=10001; int n,k,arr[maxn],ans; string is_pre……

笨小猴,第一次写解析

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char z[101]; scanf("%s",z);//输入一个字符串……

python简单易懂解法

摘要:解题思路:可以在两个硬币之间想象出一个开关,控制它们的状态,如果硬币状态与目标不符,就按下开关,以此类推参考代码:start=list(str(input()))aim=list(str(input(……