题解列表

筛选

两种方法 兔子

摘要:#include<stdio.h> int main(void) {     int a = 1, b = 1, c;     int i, n;     scanf("%d", &n); ……

哥德巴赫曾猜测

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int fun(int n) {    if (n == 1) {        return 0;    }    for (int……

人类思维与机器思维的对比

摘要:解题思路:多学数学吧注意事项:参考代码://尼科彻斯定理 //机器思维 #include<stdio.h> #include<math.h> #include<string.h> void ……

1025:数组插入处理

摘要:解题思路:这题的思路挺简单的哈。咱有个已经按顺序排好的 9 个元素的数组,然后会输入一个数。就从数组开头开始,一个个和输入的数比,要是这数比正在比的元素小,那这就是要插的位置了,把索引记录下来,要是比……

循环遍历各种情形

摘要:#include<stdio.h> #include<stdlib.h> int main(void) {     int a, b, c, d, e, f, num = 0;     in……

这题的有问题

摘要:#include<stdio.h> int ans(int n); int main(void) {     int to, from, temp;     int i, j;     i……

初学者思路,简单易懂

摘要:解题思路:从字符数组的两边往中间开始交换注意事项:参考代码: #include<stdio.h> #include<string.h> void fun(char*); int main()……