De. • 2个月前
int main() {
int a, b, c, d, e, f, g, h, i, n, j, k, l;
scanf("%d", &n);
scanf("%d %d", &a, &b);
scanf("%d %d", &c, &d);
scanf("%d %d", &e, &f);
g = 1.0 * n / a + 0.99999;
h = 1.0 * n / c + 0.99999;
i = 1.0 * n / e + 0.99999;
j = g * b;
k = h * d;
l = i * f;
if (l < k && l < j) {
printf("%d", l);
}
if (k < l && k < j) {
printf("%d", k);
}
if (j < l && j < k) {
printf("%d", j);
}
return 0;
}
评论:
请先登录,才能进行评论