TopCoder

Caido
主唱太拼命了

User's AC Ratio

92.9% (13/14)

Submission's AC Ratio

61.3% (19/31)

Tags

Description

Input Format

Output Format

Sample Input 1

9
6 8
6 4
10 2
14 2
18 4
20 8
18 12
12 14
8 12

Sample Output 1

1
9 2 6 1 5 9 4 8 3 7

Sample Input 2

3
4 9
8 1
1 1

Sample Output 2

1
3 3 2 1

Sample Input 3

5
4 1
19 14
17 17
8 0
13 0

Sample Output 3

1
5 1 5 3 4 2

Hints

Problem Source

YTP 2024 高中組程式挑戰營 p5

Subtasks

No. Testdata Range Constraints Score
1 0~2 範例測資 0
2 3~10 星星會按照它們形成的凸多邊形的頂點順序,以逆時針順序給出 6
3 0~18 無額外限制 9

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 262144 65536 1 3
1 1000 262144 65536 1 3
2 1000 262144 65536 1 3
3 1000 262144 65536 2 3
4 1000 262144 65536 2 3
5 1000 262144 65536 2 3
6 1000 262144 65536 2 3
7 1000 262144 65536 2 3
8 1000 262144 65536 2 3
9 1000 262144 65536 2 3
10 1000 262144 65536 2 3
11 1000 262144 65536 3
12 1000 262144 65536 3
13 1000 262144 65536 3
14 1000 262144 65536 3
15 1000 262144 65536 3
16 1000 262144 65536 3
17 1000 262144 65536 3
18 1000 262144 65536 3