最易懂的代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,r;int arr[30];void func(int x,int st…… 题解列表 2024年10月31日 0 点赞 0 评论 659 浏览 评分:6.0
dfs+format格式化输出 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2024年11月07日 0 点赞 0 评论 602 浏览 评分:0.0
每一行都有解释的c++代码(组合的输出) 摘要:参考代码:#include<bits/stdc++.h>//c++万能头文件using namespace std;//可以不写,不写的话在前面加上std::int m, n;//定义两个变量用于承载…… 题解列表 2024年11月07日 1 点赞 0 评论 860 浏览 评分:7.3
信息学奥赛一本通T1317-组合的输出,深搜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int n, r, a[100] = {1}; // …… 题解列表 2024年11月20日 0 点赞 0 评论 835 浏览 评分:0.0
2146: 信息学奥赛一本通T1317-组合的输出 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; …… 题解列表 2024年12月01日 0 点赞 0 评论 776 浏览 评分:9.9
信息学奥赛一本通T1317-组合的输出 摘要:#include<stdio.h>int n,r;int arr[22];void fun(int x,int start){ …… 题解列表 2025年10月30日 0 点赞 0 评论 286 浏览 评分:0.0
组合输出(从n个数中选择r个数 进行组合)利用深度优先遍历 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int n,r,arr[22];void dfs(int step, int flag){ if(…… 题解列表 2025年12月15日 0 点赞 0 评论 326 浏览 评分:0.0