1. 石子合并

    12345678910111213141516171819202122232425262728#include<cstdio>#include<iostream>using namespace std;int n;int a[9999];int s[9999],f[9999][999]; int main(){ scanf("%d",&a …

    于  区间dp 继续阅读