where is your code?
by ivyjiao @ 2022-05-21 12:02:22
让我凭意念看你代码是吧
by wtcqwq @ 2022-05-21 12:02:56
```cpp
#include<iostream>
#include <cmath>
using namespace std;
int main(){
long long int n, a, b, ans = 1000000;
cin >> n;
for(int i = 0;i < 3;i++){
cin >> a >> b;
if(ans > ceil(n * 1.0 / a) * b){
ans = ceil(n * 1.0 / a) * b;
}
}
cout << ans;
return 0;
}
```
by sxy2012yutiti @ 2022-05-21 12:04:31
@[yutiti80](/user/729386) ans不够大
by ivyjiao @ 2022-05-21 12:09:03
```
long long int n, a, b, ans = 1000000;
```
改为
```
long long int n, a, b, ans = 10000000;
```
by ivyjiao @ 2022-05-21 12:09:44
谢谢
by sxy2012yutiti @ 2022-05-21 12:10:58