#include #include using namespace std; int main(){ int n,c,v; long long cost[50001]; cin>>n>>c>>v; cost[1]=0; for(int i=2;i<=n;i++) cost[i]=114514191911451419; int cnt; for(int i=1;i<=n;i++){ for(int j=1;;j++){ int now=i+j*i; if(i+j*i>n) now=n; cost[now]=min(cost[now],cost[i]+c+j*v); if(i+j*i>n) break; } //for(int j=1;j<=n;j++) cout<