字符序列模式识别-题解(C++代码) 摘要:解题思路:首先注意本题的条件,1、子串大小为0<s<1000,那么两个串大小最大为999+999=1998,最小为1+1=2,再加上中间&字符,所以整个串长度为3<=s<=1999;2、第二个判断,如…… 题解列表 2024年12月09日 0 点赞 0 评论 106 浏览 评分:0.0
字符串内排序 vector 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串变量,用于存储输入的一…… 题解列表 2024年12月09日 0 点赞 0 评论 104 浏览 评分:0.0
1268: 第K极值 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; bool f(int x){ // 如果x小于等于1,则不是素数 …… 题解列表 2024年12月09日 1 点赞 0 评论 205 浏览 评分:0.0
掌握反向迭代就行 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string input; …… 题解列表 2024年12月08日 0 点赞 0 评论 316 浏览 评分:0.0
1739: 成绩排序 sort+结构体 包看懂 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义结构体xs,包含三个成员变量:字符串x、整数y和整数z stru…… 题解列表 2024年12月08日 0 点赞 0 评论 241 浏览 评分:0.0
1728: 字符串的查找删除 来看看吧 万一看懂了呢 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; void f(string x){ // 遍历字符串的每一个字符 …… 题解列表 2024年12月08日 1 点赞 0 评论 142 浏览 评分:0.0
蓝桥杯2014年第五届真题-拼接平方数 (C++代码)简单通解 摘要:解题思路:注意事项:参考代码://1.先求所有平方数,缩小范围//2.只能拆分成左边数字和右边数字,通过求商和求余获得#include<iostream>#include<cmath>using na…… 题解列表 2024年12月08日 0 点赞 0 评论 110 浏览 评分:0.0
1727: 首字母大写 ! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义一个字符串变量s1,用于存储输入…… 题解列表 2024年12月08日 0 点赞 0 评论 133 浏览 评分:0.0
编写题解 2797: 最高的分数 摘要:解题思路:本题使用打擂台法解决注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n;cin>>n; …… 题解列表 2024年12月08日 1 点赞 0 评论 193 浏览 评分:10.0