Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
2002
已修正限制並 rejudge
2024 全國賽
(除了D) 已公開!
2419 . C. 數字叢集 (Nums)
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
Caido
W
aimai
∼
User's AC Ratio
100.0% (
3/3
)
Submission's AC Ratio
100.0% (
5
/
5
)
Tags
Show solution-related tags
全國賽
2024-全國賽
nhspc113
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
2 1234 1324
Sample Output 1
copy
1 2
Sample Input 2
copy
6 1234 1324 2134 7 3 30
Sample Output 2
copy
3 3
Hints
Problem Source
113 學年度全國資訊學科能力競賽
測資來源:
TWPCA GitHub
Subtasks
No.
Testdata Range
Constraints
Score
1
0~1
範例測資
0
2
2~11
n
≤
20
且
a
i
的位數等於
5
15
3
0~28
a
i
的位數小於等於
500
28
4
0~45
無額外限制
57
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
1000
1048576
65536
1
3
4
1
1000
1048576
65536
1
3
4
2
1000
1048576
65536
2
3
4
3
1000
1048576
65536
2
3
4
4
1000
1048576
65536
2
3
4
5
1000
1048576
65536
2
3
4
6
1000
1048576
65536
2
3
4
7
1000
1048576
65536
2
3
4
8
1000
1048576
65536
2
3
4
9
1000
1048576
65536
2
3
4
10
1000
1048576
65536
2
3
4
11
1000
1048576
65536
2
3
4
12
1000
1048576
65536
3
4
13
1000
1048576
65536
3
4
14
1000
1048576
65536
3
4
15
1000
1048576
65536
3
4
16
1000
1048576
65536
3
4
17
1000
1048576
65536
3
4
18
1000
1048576
65536
3
4
19
1000
1048576
65536
3
4
20
1000
1048576
65536
3
4
21
1000
1048576
65536
3
4
22
1000
1048576
65536
3
4
23
1000
1048576
65536
3
4
24
1000
1048576
65536
3
4
25
1000
1048576
65536
3
4
26
1000
1048576
65536
3
4
27
1000
1048576
65536
3
4
28
1000
1048576
65536
3
4
29
1000
1048576
65536
4
30
1000
1048576
65536
4
31
1000
1048576
65536
4
32
1000
1048576
65536
4
33
1000
1048576
65536
4
34
1000
1048576
65536
4
35
1000
1048576
65536
4
36
1000
1048576
65536
4
37
1000
1048576
65536
4
38
1000
1048576
65536
4
39
1000
1048576
65536
4
40
1000
1048576
65536
4
41
1000
1048576
65536
4
42
1000
1048576
65536
4
43
1000
1048576
65536
4
44
1000
1048576
65536
4
45
1000
1048576
65536
4
Submit
Back to Top