Cf958C3分段序列.java 594 字节
Newer Older
qq_36480062's avatar
c  
qq_36480062 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
package dp.数据结构优化dp;

import java.util.Scanner;

/**
 * https://blog.csdn.net/Rose_max/article/details/82932210
 * 给你一个长度为n的序列,要求你把它分成K段
 * 每段的价值为这段的总权值%P
 * 要求总价值最小
 * n<=500000 K<=100 P<=100
 * 4 3 10    4个数,分成3段,mod10最小
 * 3 4 7 2
 * out:
 * 6
 * 
 */
public class Cf958C3分段序列 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        k = sc.nextInt();
        m = sc.nextInt();

    }

    static int n, k, m;
}