题解列表

筛选

阶乘最短最简洁题解;

摘要:解题思路:主要就是公式的运用;注意事项参考代码:#include<stdio.h>double fact(int k);int main(){    int n , i;    double num;……

最简介易懂示例!!!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 200int main(){    int n,i,num;    int arr[N];    while(sca……

2083: 蓝桥杯基础练习-十进制转十六进制(C++题解)

#直接上代码!里面有详细过程```cpp/*思路:1.先定义字符型栈(也可以用字符数组,注意逆序输出即可),因为包括字符2.定义字符串temp,用来存放数字十六进制形势3.定义和输入n4.while循环,把temp[n%16]压入栈(循环后把n再压入栈)5.输出*/#includeusingnames

1749: 字符排序(C++题解)

##上代码!里面详细教程```cpp/*思路:1.定义整数n和字符串s2.输入n3.for循环输入s4.快排sort(格式):sort(s.begin(),s.end());5.输出s*/#includeusingnamespacestd;intmain(){intn;strings;cin>>n;f

kmp字符匹配

摘要:参考代码:import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = n……

小题不必大做

摘要:解题思路:小题不必大做注意事项:参考代码:a, b, c = input().split() list1 = [a, b, c] print(max(list1))……