#include <bits/stdc++.h> using namespace std; char operation[4] = { '+','-','*','/' }; bool vis[4]; //这个题目并没有限制使用括号以及数字顺序可以改变 double num[4]; bool dfs(double cur,int idx) { if (cur == 24 && idx == 4) return true; for (int i = 0; i < 4; i++) {//用vis数组来判别是否被使用过 ...