| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 2048 MB | 36 | 27 | 25 | 73.529% |
Jenny and Ojas are part of an elite group of competitive programmers called the Star Guardians. Their next job - to do well in the NAQ!
The Star Guardians are working to assemble a team for the NAQ. They are yet to decide their team, but for each person in the group, it is known how many problems that person will solve.
The Star Guardians are also well-versed in teamwork, so they will solve an additional number of problems based solely on the size of their team.
The Star Guardians want to field a team that maximizes the average number of problems solved per team member. Compute the maximum average they can attain. You may assume the NAQ has infinitely many problems, so the Star Guardians will not run out of problems to solve.
The first line of input contains a single integer, $n$ (1ドル \le n \le 10),ドル the number of Star Guardians.
The next line contains $n$ integers $a$ (0ドル \le a \le 10^9$), with the $i$th integer being the additional number of problems solved if the Star Guardians field a team of size $i$. It is guaranteed that these integers are monotonically increasing.
The next line contains $n$ integers $s$ (0ドル \le s \le 10^8$), which is the number of problems each Star Guardian can solve.
Output a single number, which is the maximum average number of problems per team member attainable. Your output will be considered correct if it has absolute or relative error at most 10ドル^{-6}$ from the correct answer.
2 283663485 732616075 0 93763082
413189578.5
1 17109549 100000000
117109549.0
ICPC > Regionals > North America > North America Qualification Contest > ICPC North America Qualifier 2025 I번
University > MIT > The MIT Programming Contest > 2025-26 > MIT Team Contest 1 I번