求思路/代码

灌水区

@[a_little_carrot](/user/1042960) 玄一关 qwq
by a_little_carrot @ 2024-04-10 19:03:18


DFS
by lcbridge @ 2024-04-10 19:12:00


@[a_little_carrot](/user/1042960) @[lcbridge](/user/546681) 的方法难了些了,用`next_permutation`,具体百度
by Igallta @ 2024-04-10 19:18:52


@[lcbridge](/user/546681) 具体咋实现 已关 ~~DFS 没学好~~
by a_little_carrot @ 2024-04-10 19:19:11


@[Iam_God](/user/813622) 看起来好点 感谢 已关
by a_little_carrot @ 2024-04-10 19:21:05


@[a_little_carrot](/user/1042960) 把每种状态搜出来,再排个序
by lcbridge @ 2024-04-10 19:21:32


@[Iam_God](/user/813622) rz
by lcbridge @ 2024-04-10 19:25:42


@[Iam_God](/user/813622) TLE 43pts awa
by a_little_carrot @ 2024-04-10 19:42:04


那你还是用dfs吧(蚌)
by Igallta @ 2024-04-10 19:43:30


|