#Lutece0600. 数的划分
数的划分
Migrated from Lutece 600 数的划分
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
给定个数,把他们划分成最少的部分,使得每部分之和小于某个定值。
Input
输入由不超过组输入数据组成。
每组数据由给出和的一行开始。不超过,不超过。
接下里行每行一个数,每个数不超过。
Output
对于每组数据,先输出Case T:
,其中是数据的编号(从开始)。
然后输出把这个数划分成的最少部分。
Samples
1
3 3
1 3 2
Case 1: 2
Resources
UESTC Training for Dynamic Programming