This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
#include<bits/stdc++.h>
usingnamespacestd;
intn;
constintN=110;
constintINF=0x3f3f3f3f;
intst[N];
inta[N];
intres=-INF;
/*
测试用例:
5
答案:
6
*/
voiddfs(intu,intr,intlast){
//递归出口
if(r==0){
if(u>=2){
// 输出每个拆分办法
// for (int i = 0; i < u - 1; i++) cout << a[i] << " * ";