TopCoder

Gu2

User's AC Ratio

80.6% (29/36)

Submission's AC Ratio

35.6% (52/146)

Tags

Description

Input Format

Output Format

Sample Input 1

3 2 8
1 3 4
4 2

Sample Output 1

3
2 6 8

Sample Input 2

3 2 9
3 4 1
4 2

Sample Output 2

-1

Sample Input 3

0 4 61
3 5 23 30

Sample Output 3

4
30 53 58 61

Hints

Problem Source

2024 TOI 初選
測資來源:TWPCA GitHub

Subtasks

No. Testdata Range Constraints Score
1 0~1 範例測資 0
2 0~31 無額外限制 100

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1500 1048576 65536 1 2
1 1500 1048576 65536 1 2
2 1500 1048576 65536 2
3 1500 1048576 65536 2
4 1500 1048576 65536 2
5 1500 1048576 65536 2
6 1500 1048576 65536 2
7 1500 1048576 65536 2
8 1500 1048576 65536 2
9 1500 1048576 65536 2
10 1500 1048576 65536 2
11 1500 1048576 65536 2
12 1500 1048576 65536 2
13 1500 1048576 65536 2
14 1500 1048576 65536 2
15 1500 1048576 65536 2
16 1500 1048576 65536 2
17 1500 1048576 65536 2
18 1500 1048576 65536 2
19 1500 1048576 65536 2
20 1500 1048576 65536 2
21 1500 1048576 65536 2
22 1500 1048576 65536 2
23 1500 1048576 65536 2
24 1500 1048576 65536 2
25 1500 1048576 65536 2
26 1500 1048576 65536 2
27 1500 1048576 65536 2
28 1500 1048576 65536 2
29 1500 1048576 65536 2
30 1500 1048576 65536 2
31 1500 1048576 65536 2