C++:vector容器练习 输入单个字符 感觉实际上比较通用 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std ;int main ( ){&nbs…… 题解列表 2025年03月22日 1 点赞 0 评论 230 浏览 评分: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 评论 61 浏览 评分:0.0
C++:类和访问权限 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;class sum{…… 题解列表 2025年03月21日 0 点赞 0 评论 204 浏览 评分:0.0
C++:一个输出解决 \n\ 直接复制粘贴 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;int main ( ){&nb…… 题解列表 2025年03月21日 1 点赞 0 评论 251 浏览 评分:0.0
恺撒密码-模拟 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ stri…… 题解列表 2025年03月21日 1 点赞 0 评论 41 浏览 评分:10.0
模拟----------------------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; &nb…… 题解列表 2025年03月21日 0 点赞 0 评论 95 浏览 评分: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 评论 31 浏览 评分:0.0
欧几里得算法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int gcd(int a, int b){ retur…… 题解列表 2025年03月21日 0 点赞 0 评论 67 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int b[20];int main(){ int a …… 题解列表 2025年03月21日 0 点赞 0 评论 60 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for (int i = 10;…… 题解列表 2025年03月21日 0 点赞 0 评论 37 浏览 评分:0.0