C++:一个输出解决 \n\ 直接复制粘贴 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;int main ( ){&nb…… 题解列表 2025年03月21日 4 点赞 1 评论 1123 浏览 评分:0.0
换位置-双向逆序 摘要:解题思路:如果n个人如果是线性排列,要使123456…n变成n…654321, 那么需要的时间总数就是(n-1)+…+5+4+3+2+1=n*(n-1)/2;即1右移n-1步, 2右移n-2步…再回到…… 题解列表 2025年03月21日 0 点赞 0 评论 283 浏览 评分:0.0
C++:vector容器练习 输入单个字符 感觉实际上比较通用 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std ;int main ( ){&nbs…… 题解列表 2025年03月22日 2 点赞 0 评论 782 浏览 评分:0.0
排列:DFS全排列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&…… 题解列表 2025年03月22日 1 点赞 0 评论 262 浏览 评分:0.0
2955 判断素数个数 摘要:解题思路: 先判断是否为素数pd_sushu然后统计个数count_sushu,调用注意事项:参考代码:def pd_sushu(n):#判断是否为素数 if n…… 题解列表 2025年03月22日 0 点赞 0 评论 422 浏览 评分:0.0
1014阶乘求和c++版题解 摘要:c++参考代码:#include <iostream>using namespace std;int main(){ int n,i; …… 题解列表 2025年03月22日 0 点赞 0 评论 691 浏览 评分:0.0
1025c++set秒了 摘要:解题思路:set秒了参考代码:#include <iostream>#include<set>using namespace std;int main(){ &nb…… 题解列表 2025年03月22日 0 点赞 0 评论 431 浏览 评分:0.0
鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n;double x,y,d,d1;cin…… 题解列表 2025年03月23日 1 点赞 0 评论 407 浏览 评分:0.0
打击犯罪 逆向思维 摘要:解题思路:逆序列添加进图中当添加到m的时候图中的犯罪团伙数量不超过n/2时说明还可以继续添加否则这个此时的m必须删除 且为最小值注意事项:这个题目要求 求的就是最小的k 因为把k删除后最大…… 题解列表 2025年03月23日 0 点赞 0 评论 352 浏览 评分:0.0
骑马修栅栏(dfs) 摘要:#include<bits/stdc++.h>using namespace std;const int N = 1e3 + 26;int mapp[N][N], S[N], ans[N]…… 题解列表 2025年03月23日 0 点赞 0 评论 233 浏览 评分:0.0