摘要:
1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 using namespace std; 5 const int Ni = 105; 6 const int inf = 1<<27; 7 int n,num[Ni],sum[Ni],d[Ni][Ni]; 8 inline int min(int a,int b) {return a<b? a:b;} 9 int dp(int i,int j)10 {11 int ans=inf;12 if(d[i][j]!=i 阅读全文