矩阵交换行c++题解 摘要:解题思路:按吧按吧按吧按吧按吧按吧按吧按吧按吧注意事项:啥也没有参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[6]…… 题解列表 2023年03月25日 0 点赞 0 评论 338 浏览 评分:8.0
dfs+贪心解法 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n,k;int dfs(int t){ if(t<=n) { …… 题解列表 2023年03月25日 0 点赞 0 评论 418 浏览 评分:0.0
数组切分 动态规划 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5+10;in…… 题解列表 2023年03月25日 0 点赞 0 评论 475 浏览 评分:0.0
判断一个数是否是质数(C++) 摘要:解题思路:注意事项:0和1不是质数参考代码:#include<iostream>using namespace std;bool check(int n)//检查这个数是否是质数,{ if (…… 题解列表 2023年03月25日 0 点赞 0 评论 366 浏览 评分:0.0
闲来无事写个题解 摘要:解题思路:使用“cout”,输出一个字符串.注意事项:注意不要落下标点哦参考代码: #include<iosteam> using namespace std; …… 题解列表 2023年03月24日 0 点赞 0 评论 1491 浏览 评分:9.7
蓝桥杯卡牌c++二分答案解法 摘要:# 二分答案 ## 首先按照现有的卡牌数量a排序 ## 每轮检查m是否能够将所有卡牌都改成mid个 ### check函数就是简单的遍历每一个 ### 直到当前这一个卡牌数量达到了mid 或…… 题解列表 2023年03月24日 0 点赞 0 评论 1239 浏览 评分:8.3
1492: 蓝桥杯算法提高VIP-产生数 摘要:```cpp #include #include using namespace std; int tag[10][10],d[10],p[1000]; int main() { …… 题解列表 2023年03月24日 0 点赞 0 评论 535 浏览 评分:6.0
LikeWater - 2701: 蓝桥杯真题-取模(请问有谁知道看错题的痛!一直看成n mod x == m mod y 隔这儿一只写。。。) 摘要:####这是题目:给定 n, m ,问是否存在两个不同的数 x, y 使得 1 ≤ x < y ≤ m 且 n mod x = n mod y 。 ***最后的地方我看成了n mod x = m m…… 题解列表 2023年03月24日 0 点赞 0 评论 773 浏览 评分:6.0
1275: 吹哨传球 摘要:```cpp #include using namespace std; int main() { int n,m; int F[31][31]; scanf(…… 题解列表 2023年03月24日 0 点赞 0 评论 455 浏览 评分:6.0