#include <iostream>
using namespace std;
int main()
{
int n,a1,b1,a2,b2,a3,b3;
cin >> n >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;
int num1 = n%a1==0? n/a1 : n/a1+1;
int num2 = n%a2==0? n/a2 : n/a2+1;
int num3 = n%a2==0? n/a3 : n/a3+1;
cout << min(num1*b1,num2*b2,num3*b3);
return 0;
}
请问这个为什么没法通过编译……