题目链接:https://ac.nowcoder.com/acm/contest/82/B #include<bits/stdc++.h> #define LL long long using namespace std; LL a[1000005], s[1000005]={0}, f[1000005][25]; int main(){ int n, m, k; scanf("%d%d%d", &n, &m, &k); for(int i=1; i<=n; i++){ scanf("...