题解列表

筛选

字符串的输入输出处理(Java语言)

摘要:解题思路:注意事项:nextInt只取到数字,后面还有换行符,需用nextLine获取并自动丢弃,才可继续取下一行。参考代码:import java.io.*; import java.util.*……

[递归]母牛的故事

摘要:解题思路:注意事项:参考代码:while True:    n = int(input())    a = b= c = 0    sum = d = 1    for i in range(n-1)……

快速排序!!!!!

摘要:```cpp #include using namespace std; const int L = 10 + 2; int q[L]; int len; void quick_sort(……

1121题解python for循环

摘要:解题思路:不停地嵌套就行了注意事项:参考代码:for i in range(10000):    if i%8==1:        if (i//8)%8==1:            if ((i……

单词分析(C代码)

摘要: #include #include char str[1010]; //建立count数组统计26个字母出现个数 int count[26]; ……

一种容易理解的方法

摘要:解题思路:注意事项:参考代码:注意逻辑#include<stdio.h>int main(){    int a,b,c;    scanf("%d""%d""%d",&a,&b,&c);    if……

动态规划!!!

摘要:```cpp // f[i][j] = f[i - 1][j] + f[i][j - i] #include using namespace std; const int N = 1……