题解 1043: [编程入门]三个数字的排序 摘要:解题思路: 论坛是个好东西,写完自己的代码后要去多逛逛下面来总结这道题的三种解法方法一:三目运算符求解最大数:(a>b?a:b)>c?(a>b?a:b):c)最小数:(a<b?a:b)<c?(a<b?…… 题解列表 2023年12月30日 0 点赞 0 评论 187 浏览 评分:9.9
C++利用string里重载的不等号直接比较 摘要:解题思路:这里提供一个不用比较函数的字符串比较的方法:利用C++string里重载的不等号直接对字符串进行比较首先直接用string进行定义两个字符串,C++中string在头文件#include<s…… 题解列表 2023年12月29日 0 点赞 0 评论 388 浏览 评分:9.9
1002: [编程入门]三个数最大值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin >> a>>b>…… 题解列表 2023年12月29日 0 点赞 0 评论 255 浏览 评分:0.0
自定义函数之数字后移,vector 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>#include <iomanip>#include<cstdio>#include<cstring…… 题解列表 2023年12月29日 0 点赞 0 评论 159 浏览 评分:0.0
2858 整理药房 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=110;char s[N];int main(){ int…… 题解列表 2023年12月29日 0 点赞 0 评论 177 浏览 评分:9.9
2854: 密码翻译 摘要:``` #include using namespace std; const int N=100010; string a; //字符串 int main() { getline(c…… 题解列表 2023年12月29日 0 点赞 0 评论 186 浏览 评分:9.9
题解 2852: 配对碱基链 摘要: #include using namespace std; char a[256]; int main(){ cin>>a; int q=…… 题解列表 2023年12月29日 0 点赞 0 评论 200 浏览 评分: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 评论 233 浏览 评分:9.9
2913: 整数去重 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=20010;int a[N];int main() { …… 题解列表 2023年12月29日 0 点赞 0 评论 248 浏览 评分:0.0
全排列(递归) 摘要:解题思路:在第0位选取一个字母, 依次遍历字符串每个字符,如果被选过,不要再选, 递归到下一位; 如果当前位已经达到字符串长度, 输出选中的字符注意事项: 字符串索引从0开始, 注意边界; 另外, …… 题解列表 2023年12月28日 0 点赞 0 评论 562 浏览 评分:9.9