#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, Pxx commute time being yy means that exactly\textbf{exactly} x%x\% of the commute times in the entire dataset are less than or equal to yy. For example, the P50 of the set {1,1,4,5,1,4}\{1, 1, 4, 5, 1, 4\} can be 11, 22 or 33, since there are exactly\textbf{exactly} 6×50%=36 \times 50\% = 3 values less than or equal to 11, 22 or 33. However, there are no valid P95 or P99 for these values because 6×95%6 \times 95\% and 6×99%6 \times 99\% 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 aa, representing the P50 value. The second line contains a single integer bb, representing the P95 value. The third line contains a single integer cc, representing the P99 value. (1a<b<c<1091 \le a < b < c < 10^9)

输出格式

Output two lines. The first line should contain a single integer nn (100n105100 \le n \le 10^5), representing the length of the data set.

The second line should contain nn integers a1,a2,,ana_1, a_2, \ldots, a_n (1ai1091 \le a_i \le 10^9), 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 33 and 9999 (inclusive) for display purposes. In your output, you must include all of these values.

Please note that the definition of Pxx values in this problem is different from the xx-th percentile.