题解列表

筛选

字符串内排序 vector

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){     // 定义一个字符串变量,用于存储输入的一……

1268: 第K极值

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; bool f(int x){     // 如果x小于等于1,则不是素数 ……

掌握反向迭代就行

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){    string input;   ……

1739: 成绩排序 sort+结构体 包看懂

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体xs,包含三个成员变量:字符串x、整数y和整数z stru……

1727: 首字母大写 !

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){     // 定义一个字符串变量s1,用于存储输入……

编写题解 2797: 最高的分数

摘要:解题思路:本题使用打擂台法解决注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n;cin>>n; ……

编写题解 1765: 循环入门练习2

摘要:解题思路:注意事项:注意这道题有两种解法参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int sum=0;for(int……