两种解法(sort和快速排序) 摘要:解题思路:第一种是利用c++内置函数sort,第二种是利用快速排序.(建议掌握第二种)注意事项:参考代码:第一种:第二种:#include<bits/stdc++.h> using namespac…… 题解列表 2022年11月04日 0 点赞 0 评论 371 浏览 评分:0.0
不用二维数组来解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct st{ int g; char nam…… 题解列表 2022年11月04日 0 点赞 0 评论 416 浏览 评分:0.0
偶数求和和和和和 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<cstdio>using namespace std;int main(){…… 题解列表 2022年11月04日 0 点赞 0 评论 356 浏览 评分:9.9
使用while循环 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int huiwen(int i){ int k; k=i; int t,s=0; …… 题解列表 2022年11月03日 0 点赞 0 评论 410 浏览 评分:9.9
整数序列的元素最大跨度值(c++贼简单) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, n, c, max, min; cin >>…… 题解列表 2022年11月03日 0 点赞 0 评论 743 浏览 评分:6.9
题解 2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int b[501]={0},a[252]={0…… 题解列表 2022年11月03日 0 点赞 0 评论 345 浏览 评分:0.0
结构体sort排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct M{ string s; float …… 题解列表 2022年11月03日 0 点赞 0 评论 367 浏览 评分:0.0
利用sort进行结构体排序(简单易上手) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct Geade{ int id,y,s,e,s…… 题解列表 2022年11月03日 0 点赞 0 评论 316 浏览 评分:0.0
去掉空格(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<string> int main() { string…… 题解列表 2022年11月03日 0 点赞 0 评论 605 浏览 评分:9.9
求长方形面积(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<…… 题解列表 2022年11月03日 0 点赞 0 评论 680 浏览 评分:9.3