优质题解 3种方法+从简到繁 完成 排列 摘要:解题思路:1.暴力法:使用一个数组存输入的4个数,每次去掉其中一个;然后对于剩余3个数,使用2个for循环选择前2个, 最后一个则等于6-i-j-k (考虑互不相等,i、j、k 最大为 3、2、1 …… 题解列表 2022年04月08日 0 点赞 1 评论 2400 浏览 评分:9.9
全球变暖BFS 摘要: 宽搜解法 #include #include #include using namespace std; const int N …… 题解列表 2022年04月08日 0 点赞 0 评论 606 浏览 评分:9.9
字符串的修改 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[1005][1005];char A[205],B[205];int …… 题解列表 2022年04月08日 0 点赞 0 评论 509 浏览 评分:9.9
1507: 蓝桥杯算法提高VIP-去注释(c++) 摘要:参考代码:#include<bits/stdc++.h> using namespace std; char s[1000000]; int main(){ char c,t; …… 题解列表 2022年04月08日 0 点赞 0 评论 472 浏览 评分:0.0
递增三元组——二分(c++) 摘要: 转了一圈发现没几个用二分的.... 思路很简单,我们先确定中间的数,b[i],然后分别二分查找比b[i]小的以及比b[i]大的数即可。我们可以在比b[i]小的数中,找到最大的数,那么比他小的数,…… 题解列表 2022年04月08日 0 点赞 0 评论 740 浏览 评分:9.9
题目 2352: 信息学奥赛一本通T1440-数的划分 摘要:解题思路:将整数n分为k份,任意两份不能相同,而言,我们只需要保证这k个数,每个数都要大于等于前一个数即可。注意事项:int a[100]={1};//数组,存放每个值 int n,z;全局变量,方…… 题解列表 2022年04月08日 0 点赞 0 评论 638 浏览 评分:9.9
题解 1203: 多输入输出练习2 摘要:解题思路:一开始的pi根据按照M_PI,发现于题目输出不符合,试着降低pi的精确度注意事项:参考代码:#include<iostream> #include<iomanip> #include<…… 题解列表 2022年04月08日 0 点赞 1 评论 446 浏览 评分:0.0
什么llllllllj题目【c++】 摘要:```cpp #include using namespace std; string a, b; int main(){ printf("please input a …… 题解列表 2022年04月07日 0 点赞 0 评论 438 浏览 评分:9.9
C++ 究极三目运算符 摘要:解题思路:注意事项:参考代码:#include<cstring>#include<stdio.h>int main(){ int n,t,k,j,i=1;char c[124][124]; …… 题解列表 2022年04月07日 0 点赞 0 评论 582 浏览 评分:0.0
时间转换【C++】 摘要:```cpp #include using namespace std; int main(){ int t; cin >> t; int shi = t / 3600; …… 题解列表 2022年04月07日 0 点赞 0 评论 507 浏览 评分:0.0