1122: C语言训练-亲密数 摘要:```cpp #include #include using namespace std; mapm; void judge(int a) { int result=0; …… 题解列表 2022年09月17日 0 点赞 1 评论 935 浏览 评分:9.9
1123: C语言训练-列出最简真分数序列* 摘要:```cpp #include using namespace std; bool Judge(int &a,int &b) { for(int i=2;i…… 题解列表 2022年09月17日 0 点赞 0 评论 516 浏览 评分:9.9
1124: C语言训练-大、小写问题 摘要:```cpp #include #include using namespace std; int main() { char ch[101]; gets(ch); …… 题解列表 2022年09月17日 0 点赞 0 评论 481 浏览 评分:9.9
中华人民共和国万岁1 摘要:解题思路:无注意事项:无参考代码:#includeint main(){ int i,j,n,sum=0; scanf("%d",&n); for(i=0,j=2;i<n;i++,j+=3) { s…… 题解列表 2022年09月17日 0 点赞 3 评论 748 浏览 评分:9.9
合并链表之【直接在head1的后面接上head2】 摘要:主要思路如下: 1、创建:分别创建好两个已知长度的链表并输入相关的值(从head->next开始存值) 2、合并:直接将第二个链表接到第一个链表的尾部,将第一个链表的尾部"p"指向第二个链表的第一…… 题解列表 2022年09月17日 0 点赞 0 评论 427 浏览 评分:9.9
蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:这个题主要是找规律这里我们说一下他的规律,我们会发现a2 其实就是 a1 + c + a1 就是把上一个的字符串首尾拼接,中间再拼接一个字母,字母会逐步向加,从a 加到 z好了,再有不懂得…… 题解列表 2022年09月17日 0 点赞 0 评论 438 浏览 评分:9.9
IP判断,逐项判断思路清晰,变量少 摘要:解题思路: 没有说输入多少串字符串结束,结束条件是当输入End of file时结束程序 “End of file”这个字符串中间有空格,在while()中采用gets获取…… 题解列表 2022年09月18日 0 点赞 0 评论 493 浏览 评分:9.9
字符串对比 摘要:参考代码1#include<iostream> #include<math.h> #include<string.h> #include<stdlib.h> using namespace s…… 题解列表 2022年09月18日 0 点赞 0 评论 436 浏览 评分:9.9
朴素版本的dijkstra算法(有注释) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstring> using namespace std; c…… 题解列表 2022年09月18日 0 点赞 0 评论 522 浏览 评分:9.9
兰顿蚂蚁(C语言解答) 摘要:解题思路:本题只需按照题目所给要求一步一步完成即可,比较简单。注意事项:注意行列变换规律。参考代码:#include<stdio.h>int main(){ int n,m,x,y,k,z; /…… 题解列表 2022年09月18日 0 点赞 0 评论 647 浏览 评分:9.9