시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 512 MB | 367 | 322 | 300 | 87.719% |
This summer, you plan to organize a large party and invite many friends. They have a sweet tooth, so you plan to bake nice cakes for them. You know the recipe for a nice chocolate cake, and you want to cook as many of them as possible.
Given the $N$ ingredients needed to make a single cake and the ingredients that you have in your kitchen, how many cakes can you make?
The output should contain a single integer: the maximum number of cakes you can make using the available ingredients.
3 100 500 2 5 70 1000
2
3 100 50 2 5 70 1000
0
ICPC > Regionals > Europe > Southwestern European Regional Contest > SWERC 2020-2021 E번