#P10679. 『STA - R6』spec
『STA - R6』spec
Description
The spectrum of a real number is an infinite sequence of integers defined as $\lceil \alpha \rceil - 1, \lceil 2\alpha \rceil - 1, \lceil 3\alpha \rceil - 1, \cdots$. For example, the beginning of the spectrum of is .
Given integers , find the largest real number such that every appears in .
Input Format
The first line contains a positive integer .
The second line contains positive integers .
Output Format
Output the largest . Your answer will be considered correct if its absolute error is less than .
3
1 2 3
1.3333333
3
2 4 7
2.5000000
Hint
This problem uses subtask scoring.
Data Constraints:
- Subtask 0 (10 points): .
- Subtask 1 (15 points): Valid answers form a continuous interval.
- Subtask 2 (25 points): Every is a non-negative integer power of 2.
- Subtask 3 (50 points): No additional constraints.
For all test cases, .
Translation by DeepSeek R1
京公网安备 11011102002149号