题解列表

筛选

编写题解 3030: 全排列

摘要:解题思路:创建三个数组,一个储存输入的字符串,一个用于输出结果的字符串,一个用于遍历时记录当前字符有没有被使用过,通过递归来遍历生成全排列注意事项:在遍历完一个位置之后要重新标记为未使用,方便后面继续……

c++加注释版

摘要:#include <iostream>using namespace std;int main() { int k; cin >> k; if (k == 1 || k == ……

c语言大一新生

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run this program using the consol……

编写题解1019

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> double m = 0; int n=0;//输入开始时的高度m和弹起的次……

编写题解1020

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,i,sum=1; scanf("%d", &N); for ……

c++简单解法

摘要:#include <iostream>using namespace std;int main() { int n; cin >> n; int sumjin = 0, sum……

c++ 2796简单解法

摘要:#include <iostream>#include <iomanip>using namespace std;int main() { int n; cin >>……