合并链表之【直接在head1的后面接上head2】 摘要:主要思路如下: 1、创建:分别创建好两个已知长度的链表并输入相关的值(从head->next开始存值) 2、合并:直接将第二个链表接到第一个链表的尾部,将第一个链表的尾部"p"指向第二个链表的第一…… 题解列表 2022年09月17日 0 点赞 0 评论 434 浏览 评分:9.9
快速转置数组 摘要:解题思路:注意事项:输出注意加上换行符参考代码:#include <bits/stdc++.h> using namespace std;int main(){ int a[3][3]={0};…… 题解列表 2022年09月17日 0 点赞 0 评论 378 浏览 评分:0.0
中华人民共和国万岁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 评论 752 浏览 评分:9.9
1125: C语言训练-委派任务* 摘要:```cpp #include using namespace std; int main() { int a,b,c,d,e,f; for(a=0;a…… 题解列表 2022年09月17日 0 点赞 0 评论 620 浏览 评分:8.0
1124: C语言训练-大、小写问题 摘要:```cpp #include #include using namespace std; int main() { char ch[101]; gets(ch); …… 题解列表 2022年09月17日 0 点赞 0 评论 484 浏览 评分: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 评论 524 浏览 评分:9.9
1122: C语言训练-亲密数 摘要:```cpp #include #include using namespace std; mapm; void judge(int a) { int result=0; …… 题解列表 2022年09月17日 0 点赞 1 评论 940 浏览 评分:9.9
0916每日一题【C++】 摘要:解题思路:找到对称轴,实现字符串之间的相加注意事项:C++,而且注意如果s不定义为"A”的话,i要从0开始,且循环体要交换顺序参考代码:#include <iostream>//李政 #includ…… 题解列表 2022年09月17日 0 点赞 2 评论 307 浏览 评分:9.9
利用动态vector进行求解 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;int main(){ int i,j;/* int n,m;…… 题解列表 2022年09月16日 0 点赞 0 评论 353 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,a,b; scanf("%d %d",&m,&n); a=m; do { a--; …… 题解列表 2022年09月16日 0 点赞 0 评论 334 浏览 评分:0.0