mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-19 10:32:19 +08:00
@@ -254,15 +254,15 @@ namespace asst::algorithm
|
||||
}
|
||||
|
||||
// dance!!
|
||||
bool has_solution = dancing_links_model.dance(0);
|
||||
bool has_solution = dancing_links_model.dance(1);
|
||||
|
||||
// 判定结果
|
||||
if (!has_solution) return std::nullopt;
|
||||
|
||||
std::unordered_map<std::string, std::string> return_value;
|
||||
|
||||
for (size_t i = 0; i < dancing_links_model.answer_stack_size; i++) {
|
||||
if (dancing_links_model.answer_stack[i] > node_num) break;
|
||||
for (size_t i = 1; i < dancing_links_model.answer_stack_size; i++) {
|
||||
if (dancing_links_model.answer_stack[i] > node_num) continue;
|
||||
return_value.insert(node_id_mapping[dancing_links_model.answer_stack[i] - 1]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user