Login
Sign-Up
Problem
Contest
Category
Submissions
English
Problem
Contest
Category
Submissions
English
#287
Submit Code
Submissions
거리 합 구하기
Time Limit: 2 Sec
Memory Limit: 1024 MiB
한국어
Example Input 1
Copy
4 1 2 1 2 3 2 3 4 4
Example Output 1
Copy
11 9 9 17
Example Input 2
Copy
7 1 2 5 1 3 2 1 4 8 3 5 4 3 6 1 4 7 6
Example Output 2
Copy
38 63 40 62 60 45 92
Language-Specific Restrictions