#P15083. [ICPC 2024 Chengdu R] Recover Statistics
[ICPC 2024 Chengdu R] Recover Statistics
题目描述
You recently conducted a survey on how much time university students spend commuting from their dorms to school buildings. You believe that this survey could significantly improve campus planning, making commuting easier for both students and faculty. As part of your analysis, you calculated the P50, P95, and P99 commute times to support your conclusions. Here, P commute time being means that of the commute times in the entire dataset are less than or equal to . For example, the P50 of the set can be , or , since there are values less than or equal to , or . However, there are no valid P95 or P99 for these values because and are not integers.
Unfortunately, something went wrong --- you accidentally deleted the entire dataset. The only values you have left are the P50, P95, and P99 of the commute times. Since you do not have time to redo the survey, you need to reconstruct a set of data that matches all of the P50, P95, and P99 values.
输入格式
The input consists of three lines. The first line contains a single integer , representing the P50 value. The second line contains a single integer , representing the P95 value. The third line contains a single integer , representing the P99 value. ()
输出格式
Output two lines. The first line should contain a single integer (), representing the length of the data set.
The second line should contain integers (), representing the reconstructed data set. The integers can be in any order. Any output that meets the requirements will be considered correct.
50
95
99
100
1 2 ... 100
提示
The example output omits the values between and (inclusive) for display purposes. In your output, you must include all of these values.
Please note that the definition of P values in this problem is different from the -th percentile.