1060: 二级C语言-同因查找 摘要:```cpp #include using namespace std; int main() { for(int i=42;i…… 题解列表 2023年01月31日 0 点赞 0 评论 245 浏览 评分:9.9
1065: 二级C语言-最小绝对值 摘要:本题有提到“绝对值”这个字眼大家要马上想起绝对值函数 1、abs abs函数用于整数,格式为 int a=…; a=abs(a);//a=a的绝对值 2、fabs abs函数用于实数,…… 题解列表 2023年01月31日 0 点赞 0 评论 404 浏览 评分:9.9
1157:亲和数(c语言) 摘要:解题思路:先求出A,B的约数,加起来看看能不能分别和另一个数相等。注意事项:参考代码:#include <stdio.h> int main () { int M, A, B; …… 题解列表 2023年01月31日 0 点赞 0 评论 249 浏览 评分:9.9
1159:偶数求和(c语言) 摘要:解题思路:注意事项:参考代码:#include int main () { int n, m; while(scanf("%d %d", &n, &m) != EOF) …… 题解列表 2023年01月31日 0 点赞 0 评论 195 浏览 评分:9.9
2913:【桶】整数去重_C++解法 摘要:解题思路:用bucket数组来标记该数字是否已经输出过。若为0,则可以输出;若不为0,则已经输出过,不用输出注意事项:bucket数组下标表示的是数列中的数字,所以数组长度大于100即可。同时将buc…… 题解列表 2023年01月31日 0 点赞 0 评论 542 浏览 评分:9.9
1676: 数据结构-链表的基本操作 摘要:说实话,用cin和cout输入输出实在是太慢了,所以我用scanf和printf进行输入输出。 ```cpp #include #include using namespace std; t…… 题解列表 2023年01月31日 0 点赞 0 评论 460 浏览 评分:9.9
1677: 数据结构-静态链表 摘要:```cpp #include #include using namespace std; struct ListNode { string elem; int next…… 题解列表 2023年01月31日 0 点赞 0 评论 358 浏览 评分:9.9
1200: 回文串 摘要:参考代码:#include<stdio.h> #include<string.h> int main(){ int i,j=0; char a[260],b[260]; gets(a);…… 题解列表 2023年01月31日 0 点赞 0 评论 378 浏览 评分:9.9
1678: 数据结构-双向循环链表 摘要:```cpp #include using namespace std; typedef int Status,ElemType; typedef struct DuLNode { …… 题解列表 2023年01月31日 0 点赞 0 评论 377 浏览 评分:9.9
1245: 神奇的fans 摘要:```cpp #include using namespace std; int main() { int cmp(const void *a,const void *b),i,n,…… 题解列表 2023年01月31日 0 点赞 0 评论 272 浏览 评分:9.9