使用strcat字符串连接 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ char s[100]; …… 题解列表 2023年03月18日 0 点赞 0 评论 301 浏览 评分:0.0
就栈的基本应用 有解析 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,n; char a; while(cin >> …… 题解列表 2023年03月18日 0 点赞 0 评论 418 浏览 评分:0.0
蓝桥杯2017年第八届真题-k倍区间(C代码) 摘要:解题思路: 注意事项:参考代码:#include<stdio.h> int main(){ int n,k,i; scanf("%d%d",&n,&k); …… 题解列表 2023年03月18日 0 点赞 0 评论 397 浏览 评分:0.0
编写题解 1052: [编程入门]链表合并(c语言) 摘要: #include typedef struct student{ int id; int greed; struct student *next; }node; …… 题解列表 2023年03月18日 0 点赞 0 评论 349 浏览 评分:0.0
最小三个数 摘要:解题思路:先从小到大排序 ,在输出使用冒泡排序参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; int i,j,t;…… 题解列表 2023年03月19日 0 点赞 0 评论 348 浏览 评分:0.0
#C++1841——蓝桥杯2017年第八届真题-发现环 摘要:解题思路:因为是从1开始构造,就无需排序啦*******************************参考代码:#include <iostream> using namespace std; …… 题解列表 2023年03月19日 0 点赞 0 评论 426 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>#define Area(S,a,b,c) sqrt(S*(S-a)…… 题解列表 2023年03月19日 0 点赞 0 评论 313 浏览 评分:0.0
快速排序法之分治法,挖坑填数法 摘要:解题思路:注意事项: 法一 分治法注意事项 内循环的while(i<j&&nums[j]>=key)和while(i<j&&nums[i]<=key) 必须加等号法二 挖坑填数法注意事项 …… 题解列表 2023年03月19日 0 点赞 0 评论 411 浏览 评分:0.0
同样的道理维护最大上升子序列 摘要:既让要求最长子序列的和,我们就在求最长子序列的过程中将数据存好: import java.util.ArrayList; import java.util.Arrays; import…… 题解列表 2023年03月19日 0 点赞 0 评论 491 浏览 评分:0.0
c语言。。。 摘要:参考代码:#include <stdio.h>#include <string.h>#define NO_OF_CHARS 256char getFirstNonRepeatingChar(char*…… 题解列表 2023年03月19日 0 点赞 0 评论 412 浏览 评分:0.0