您当前的位置: 首页 > 

不牌不改

暂无认证

  • 0浏览

    0关注

    422博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

DFS 显示n个数中选取i(0~n)个数的情况

不牌不改 发布时间:2022-03-10 21:11:43 ,浏览量:0

#include
using namespace std;

int a[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
int vis[10];
int n = 10, ans;

void dfs (int x) {
	
	if (x == n) {
		for (int i = 0;i             
关注
打赏
1662186765
查看更多评论
0.0367s