5289专题

hdu 5289 Assignment(数学)

题目链接:hdu 5289 Assignment #include <cstdio>#include <cstring>#include <algorithm>using namespace std;const int maxn = 100000 + 5;const int maxm = 20;int N, K, A[maxn], dMax[maxn][maxm], dMin[maxn