C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void swap_num(int *a, int *b){ &nbs…… 题解列表 2025年03月21日 0 点赞 0 评论 394 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ &n…… 题解列表 2025年03月21日 0 点赞 0 评论 446 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_leap(int year){ if (…… 题解列表 2025年03月21日 0 点赞 0 评论 355 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ for (int i = 10;…… 题解列表 2025年03月21日 1 点赞 0 评论 337 浏览 评分:0.0
C++简单写法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int b[20];int main(){ int a …… 题解列表 2025年03月21日 0 点赞 0 评论 455 浏览 评分:0.0
欧几里得算法-------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int gcd(int a, int b){ retur…… 题解列表 2025年03月21日 0 点赞 0 评论 414 浏览 评分: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 评论 254 浏览 评分:0.0
模拟----------------------------------------------------- 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; &nb…… 题解列表 2025年03月21日 0 点赞 0 评论 379 浏览 评分:0.0
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