P1025

P1025 [NOIP2001 提高组] 数的划分 题解

题目传送门 本题共有两种方法,分别是递归深搜和动态规划 方法一:递归深搜 Solution 从小到大一一枚举每一个划分的数,。只要找到一种方案就记录,具体细节代码中有注释。 Code #include <bits/stdc++.h> using namespace std; int n,k,ans; ......
题解 P1025 1025 NOIP 2001

P1025 [NOIP2001 提高组] 数的划分

https://www.luogu.com.cn/problem/P1025 #include<iostream> #include<cstring> #include<cstdio> #include<algorithm> using namespace std; const int N = 10 ......
P1025 1025 NOIP 2001
共2篇  :1/1页 首页上一页1下一页尾页