C++利用string里重载的不等号直接比较 摘要:解题思路:这里提供一个不用比较函数的字符串比较的方法:利用C++string里重载的不等号直接对字符串进行比较首先直接用string进行定义两个字符串,C++中string在头文件#include<s…… 题解列表 2023年12月29日 0 点赞 0 评论 642 浏览 评分:9.9
1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin >> a>>b>…… 题解列表 2023年12月29日 0 点赞 0 评论 400 浏览 评分:0.0
自定义函数之数字后移,vector 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>#include <iomanip>#include<cstdio>#include<cstring…… 题解列表 2023年12月29日 0 点赞 0 评论 300 浏览 评分:0.0
2858 整理药房 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=110;char s[N];int main(){ int…… 题解列表 2023年12月29日 1 点赞 0 评论 324 浏览 评分:9.9
2854: 密码翻译 摘要:``` #include using namespace std; const int N=100010; string a; //字符串 int main() { getline(c…… 题解列表 2023年12月29日 0 点赞 0 评论 343 浏览 评分:9.9
题解 2852: 配对碱基链 摘要: #include using namespace std; char a[256]; int main(){ cin>>a; int q=…… 题解列表 2023年12月29日 0 点赞 0 评论 317 浏览 评分:0.0
2880: 计算鞍点 摘要:``` #include using namespace std; int a[6][6]; int main() { int n = 5; for (int i = 1;…… 题解列表 2023年12月29日 0 点赞 0 评论 404 浏览 评分:9.9
2913: 整数去重 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=20010;int a[N];int main() { …… 题解列表 2023年12月29日 0 点赞 0 评论 394 浏览 评分:0.0
全排列(递归) 摘要:解题思路:在第0位选取一个字母, 依次遍历字符串每个字符,如果被选过,不要再选, 递归到下一位; 如果当前位已经达到字符串长度, 输出选中的字符注意事项: 字符串索引从0开始, 注意边界; 另外, …… 题解列表 2023年12月28日 0 点赞 0 评论 922 浏览 评分:9.9
3029: 逆波兰表达式 摘要:解题思路:使用栈, 遇到数字入数字栈, 遇到操作符, 在操作符栈不为空,并且数字栈的长度大于等于2时,出栈计算,结果入栈注意事项: 最后在操作符不为空时,循环出栈计算参考代码:#include<ios…… 题解列表 2023年12月28日 0 点赞 0 评论 603 浏览 评分:9.9