题解列表

筛选

组合的输出(python)

摘要:解题思路:注意事项:参考代码:def combine(n, k):    def backtrack(combination, start, n, k, res):        if k == 0:……

仅供自己学习参考

摘要:```c #include #include #define MAX_INT ~((unsigned int)0)>>1;//输出int型可以表示的最大值 int a[100][100],……

循环循环+循环(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//已有一个已正序排好的9个元素的数组,今输入一个数要求按原来排序的规律将它插入数组中。int……

指针遍历解决

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//输入10个数字,然后逆序输出。int main(){    int arr[10] = {……

2824: 求出e的值

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; long long int jc(int n) ……

循环找公因数和公倍数

摘要:解题思路:inline 为内联函数注意事项:参考代码:#include<iostream>using namespace std;inline int find_max(int a,int b){  ……