题解列表

筛选

(c语言)递归+欧拉筛解法

摘要:解题思路:质数通过欧拉筛打表判断,非质数利用递归不断分解到它为质数为止注意事项:参考代码#include<stdio.h>#include<string.h>#define maxn 50000int……

飞奔的马的(c语言)

摘要:解题思路:2 3 6 5 8 4第一次:2 3 5 6 8 4    sum=2;第二次:2 3 4 6 8 5    sum=8第三次:2 3 4 5 8 6    sum=12第四次:2 3 4 ……

数字母(输入一串字符串统计字母个数)

摘要:解题思路:第一不用输字母,可以选择gets或者scanf函数,用for循环和if语句判断,统计个数注意事项:把大小写都要统计参考代码:#include<stdio.h>#include<string.……

Jam的计数法-------c

摘要:#include <iostream>#include <stdio.h>#include <math.h>#include <algorithm>#include <string.h> using ……

不知道错哪里了...

摘要:```c #include int main(void) { int n, sn = 0, a; scanf("%d", &n); for(n; n > 0; n--) { ……

字符串编辑

摘要:解题思路:swicth语句进行操作选项注意事项:参考代码:#include<stdio.h>#include<string.h>void del(char *ch,char c){ int i,key……

c++深度搜索解题

摘要:#### ### ## # 本题的原思路来自用户名为‘gyh0416’的用户(首先在此感谢这位用户),我在看到这位作者的题解后觉得非常好,便写了这个翻版。大家可以在本题题解中找到这位作者用C#写的代码……

题解 1249: 简单编码

摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include<string.h>#include<math.h>int main(){    char str[……

题解 1250: 素数回文

摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include<string.h>#include<math.h>int sushu(int n){    int……