万变不离其宗 叫我老翟 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> typedef struct node { int start, end,…… 题解列表 2024年05月22日 0 点赞 0 评论 1017 浏览 评分:9.9
万变不离其宗 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #define N 10010 int f[N], w[N], v[N]; int main() { i…… 题解列表 2024年05月22日 2 点赞 1 评论 718 浏览 评分:9.9
最长公共子序列 摘要:解题思路:从繁至简注意事项:c参考代码:#include <stdio.h>#include <string.h>int max(int a, int b) { if (a >= b) retu…… 题解列表 2024年05月22日 0 点赞 4 评论 763 浏览 评分:9.9
1646: 蓝桥杯算法训练VIP-比较字符串 摘要:解题思路:库里有strcmp函数,返回的就是第一个不一样的位置成功返回0注意事项:参考代码: #include<iostream> #include<string> #include…… 题解列表 2024年05月22日 0 点赞 0 评论 459 浏览 评分:0.0
用调用递归的方法写有规律的数列求和 解题思路:分数序列:2/13/25/38/513/821/13......分子分母有规律的,分母:2、3、5、8、13、21...(n-1+n-2);分子:1、2、3、5、8、13...(n-1+n-2);是不是斐波那契数列,由此可见我们可以用调用递归的方法来解决问题注意事项:这里的b和c必须为flo 题解列表 2024年05月22日 0 点赞 0 评论 780 浏览 评分:0.0
1046 数字后移(构造新数组存储) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; scanf("%d",&n); int a[n]; for(i…… 题解列表 2024年05月20日 0 点赞 0 评论 456 浏览 评分:0.0
1045 整数处理(冒泡排序找最值) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[15],b[15]; for(int i=0;i<10;i++) { scanf("%d",&a[…… 题解列表 2024年05月20日 0 点赞 0 评论 419 浏览 评分:0.0
1044 三个字符串的排序(for循环交换) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main(){ char a[4][100]; for(…… 题解列表 2024年05月20日 1 点赞 0 评论 432 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值(新手小白勿喷) 摘要:解题思路:只要思路就是将a的值乘10在加上原来的值,再累加起来(新手小白勿喷)注意事项:唯一需要注意的地方就是a需先储存起来,因为后面的代码a的值会变化参考代码:#include <stdio.h>i…… 题解列表 2024年05月20日 0 点赞 0 评论 672 浏览 评分:0.0
c语言训练-求PI* 摘要:解题思路: 需要求的值时 1/1-1/3+1/5-1/7,,,所以规律也很好找,只要1/i的值时大于1E-6的值,那么就一直i=i+2;并让前面的1一直不停的取反就好了.注意事项:参考代码:#incl…… 题解列表 2024年05月20日 0 点赞 0 评论 541 浏览 评分:0.0