字符串内排序 vector 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串变量,用于存储输入的一…… 题解列表 2024年12月09日 0 点赞 0 评论 135 浏览 评分:0.0
1268: 第K极值 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; bool f(int x){ // 如果x小于等于1,则不是素数…… 题解列表 2024年12月09日 1 点赞 0 评论 262 浏览 评分:0.0
掌握反向迭代就行 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string input; …… 题解列表 2024年12月08日 0 点赞 0 评论 346 浏览 评分:0.0
1739: 成绩排序 sort+结构体 包看懂 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体xs,包含三个成员变量:字符串x、整数y和整数z stru…… 题解列表 2024年12月08日 0 点赞 0 评论 266 浏览 评分:0.0
二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[51];int b[51];int main(){ a[0]=-100; for(int i=0; i<51; …… 题解列表 2024年12月08日 1 点赞 0 评论 522 浏览 评分:0.0
: 二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double h(double x){ if(x<0) { return fa…… 题解列表 2024年12月08日 0 点赞 0 评论 564 浏览 评分:0.0
1728: 字符串的查找删除 来看看吧 万一看懂了呢 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; void f(string x){ // 遍历字符串的每一个字符…… 题解列表 2024年12月08日 1 点赞 0 评论 163 浏览 评分:0.0
C语言 指针解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main ( ){ int n=0 ; int a[110]={0} ; int *p=a ; …… 题解列表 2024年12月08日 1 点赞 0 评论 414 浏览 评分:10.0
第k极值(C语言) 摘要:解题思路:1. cmp 函数: 这是一个用于比较两个整数大小的比较函数,用于 qsort 函数进行快速排序。它返回两个指针所指向的整数的差值,用于确定排序的顺序。2. f 函数:用于判断一…… 题解列表 2024年12月08日 0 点赞 0 评论 253 浏览 评分:0.0