2955 判断素数个数 摘要:解题思路: 先判断是否为素数pd_sushu然后统计个数count_sushu,调用注意事项:参考代码:def pd_sushu(n):#判断是否为素数 if n…… 题解列表 2025年03月22日 0 点赞 0 评论 179 浏览 评分:0.0
排列:DFS全排列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&…… 题解列表 2025年03月22日 1 点赞 0 评论 88 浏览 评分:0.0
C++:vector容器练习 输入单个字符 感觉实际上比较通用 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std ;int main ( ){&nbs…… 题解列表 2025年03月22日 1 点赞 0 评论 480 浏览 评分: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 评论 90 浏览 评分:0.0
c语言好数详解 摘要:解题思路:第一位是奇数位,第二位是偶数位,第三位是奇数位....注意事项:参考代码:#include <stdio.h>int main(){ int n; int i,a; scanf(…… 题解列表 2025年03月21日 2 点赞 0 评论 466 浏览 评分:0.0
C++:类和访问权限 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;class sum{…… 题解列表 2025年03月21日 0 点赞 0 评论 412 浏览 评分:0.0
C++:一个输出解决 \n\ 直接复制粘贴 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;int main ( ){&nb…… 题解列表 2025年03月21日 2 点赞 0 评论 526 浏览 评分:0.0
恺撒密码-模拟 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ stri…… 题解列表 2025年03月21日 1 点赞 0 评论 105 浏览 评分:10.0
模拟----------------------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; &nb…… 题解列表 2025年03月21日 0 点赞 0 评论 145 浏览 评分:0.0
c++信使(msner)floyd 摘要:```cpp#include using namespace std;const int INF=0x3f3f3f3f;int days=0;int dp[105][105…… 题解列表 2025年03月21日 0 点赞 0 评论 60 浏览 评分:0.0