#include #include #include #include #include #include #include using namespace std; const int MR=105; const int NR=1e6+5; typedef long long LL; int n,m; LL p[MR];//价格 bool israw[MR];//是否为原材料 int v[MR][MR]; //v[a][b]=c表示生产a需要c个b struct P { LL cnt[MR]; P(){ for(int i=0;i