#include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; using namespace std; #define mod 1000000007 #define INF 1000000000 #define LLINF 2000000000000000000LL #define MAX_L 5000000 #define SIZE 100001 ll dp[100][100001]; int main(){ int c,n; int a[100]; bool m[SIZE]; ll m_min[SIZE]={0}; scanf("%d%d",&c,&n); for(int i=0;i