#include #include #include using namespace std; typedef long long ll; int N, V; ll C[110]; ll sum[110]; ll func(int p){ ll res = 0; int v = V; v -= N; res += sum[N]; if(v <= 0){ return res; } res += sum[p] * (v / p); v -= p * (v / p); res += sum[v]; return res; } int main(){ cin >> N >> V; for(int i=0;i> C[i]; } sum[0] = 0; for(int i=0;i