1. 装箱问题

    12345678910111213141516171819202122232425#include<cstdio>#include<iostream>using namespace std;int n,m;int f[20005];int a[99990];int main(){ scanf("%d%d",&m,&n); for …

    于  dp背包 继续阅读

  2. 小a点菜

    1234567891011121314151617#include<cstdio>using namespace std;int n,m;int f[9999];int a[9999];int main(){ scanf("%d%d",&n,&m); for(int i=1;i<=n;i++) scanf(&quot …

    于  dp背包 继续阅读