Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Teams
Sign in
Sign up
×
Close
NTUCPC Challenge! #1 題解公開!
連結
IOIC 2025 題目已公開!
連結
程式解題社網站
程式解題社網站
上線了!
NTUCPC OJ 現在支援 Rust !
1459 . 團密度
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
Aestivate
User's AC Ratio
100.0% (
5/5
)
Submission's AC Ratio
100.0% (
5
/
5
)
Tags
Show solution-related tags
ntucpcpc
ntucpcpc-2026
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
5 5 1 2 1 3 2 3 1 4 1 5
Sample Output 1
copy
3 1 2 3
Sample Input 2
copy
2 3 1 2 1 2 1 2
Sample Output 2
copy
2 1 2
Sample Input 3
copy
4 4 1 2 2 3 2 3 3 4
Sample Output 3
copy
2 2 3
Hints
Problem Source
Subtasks
No.
Testdata Range
Score
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
1000
2097152
65536
1
1000
2097152
65536
2
1000
2097152
65536
3
1000
2097152
65536
4
1000
2097152
65536
5
1000
2097152
65536
6
1000
2097152
65536
7
1000
2097152
65536
8
1000
2097152
65536
9
1000
2097152
65536
10
1000
2097152
65536
11
1000
2097152
65536
12
1000
2097152
65536
13
1000
2097152
65536
14
1000
2097152
65536
15
1000
2097152
65536
16
1000
2097152
65536
17
1000
2097152
65536
18
1000
2097152
65536
Submit
Back to Top