编写题解 3030: 全排列 摘要:解题思路:创建三个数组,一个储存输入的字符串,一个用于输出结果的字符串,一个用于遍历时记录当前字符有没有被使用过,通过递归来遍历生成全排列注意事项:在遍历完一个位置之后要重新标记为未使用,方便后面继续…… 题解列表 2025年11月02日 0 点赞 0 评论 96 浏览 评分:0.0
c++加注释版 摘要:#include <iostream>using namespace std;int main() { int k; cin >> k; if (k == 1 || k == …… 题解列表 2025年11月02日 0 点赞 0 评论 86 浏览 评分:0.0
用if和break来做,多种情况都考虑到了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,max,min,i,j; scanf("%d%d",&m…… 题解列表 2025年11月02日 1 点赞 1 评论 287 浏览 评分:10.0
c语言大一新生 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run this program using the consol…… 题解列表 2025年11月01日 0 点赞 0 评论 410 浏览 评分:0.0
判断能否被3、5、7整除 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void) { int a; scanf("…… 题解列表 2025年11月01日 0 点赞 0 评论 140 浏览 评分:0.0
编写题解1019 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> double m = 0; int n=0;//输入开始时的高度m和弹起的次…… 题解列表 2025年11月01日 0 点赞 0 评论 114 浏览 评分:0.0
编写题解1020 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i,sum=1; scanf("%d", &N); for …… 题解列表 2025年11月01日 0 点赞 0 评论 109 浏览 评分:0.0
c++简单解法 摘要:#include <iostream>using namespace std;int main() { int n; cin >> n; int sumjin = 0, sum…… 题解列表 2025年11月01日 0 点赞 0 评论 103 浏览 评分:0.0
c++ 2796简单解法 摘要:#include <iostream>#include <iomanip>using namespace std;int main() { int n; cin >>…… 题解列表 2025年11月01日 1 点赞 0 评论 101 浏览 评分:0.0