首页 > 乘积最大
头像 Doria——tt
发表于 2022-08-09 17:22:31
乘积最大 由于题目给定的是m,需要分解成m+1部分的乘积,不难想到乘号刚好是m个,那么该题就转化成了m个乘号的插入方式。  最优子结构分析:      设数字字符串为a1a2…an         展开全文
头像 Yulinlin2001
发表于 2023-06-24 19:21:39
dfs #include <iostream> #include <algorithm> #include <cmath> #include <cstring> using namespace std; int n, k; int maxv; str 展开全文

等你来战

查看全部