求改正
#include <iostream>
using namespace std;
int main() {
float n;
cin >> n;
float x, y;
float e = 10010000000000;
for (int i = 1; i <= 3; i++ ) {
cin >> x >> y;
float m = float( (y / x));
float t = m * n * 1.0;
if (e >= t) {
e = t;
}
}
cout << int(e);
return 0;
}