101612专题

Gym 101612 Problem A. Auxiliary Project(DP)

题意: 用n个木棒凑成数字,和最大是多少 思路: 直接dp写。 #include<cmath>#include<cstdio>#include<cstring>#include<algorithm>#include<iostream>typedef long long ll;using namespace std;const int maxn = 1e6 + 7;int dp[