题解列表

筛选

c语言大一新生

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

c++加注释版

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

编写题解 3030: 全排列

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

2797:最高的分数

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

2822两种思路c++

摘要:思路1 从第一项开始#include <iostream>#include <iomanip>using namespace std;int main() { int fz =……

[编程入门]带参数宏定义练习

摘要:解题思路:用C 语言的 “带参数宏” 来实现两个变量的值互换,然后通过程序验证效果。简单说就是:定义一个宏(类似“替换规则”),接收两个参数,展开后能交换这两个参数的值;再写程序输入两个数,用……