Login
Sign-Up
Problem
Contest
Category
Submissions
English
Problem
Contest
Category
Submissions
English
#232
Submit Code
Submissions
수열과 쿼리 1
Time Limit: 1 Sec
Memory Limit: 256 MiB
한국어
Example Input 1
Copy
5 1 2 3 4 5 3 1 3 2 4 1 5
Example Output 1
Copy
6 9 15
Example Input 2
Copy
4 10 20 30 40 2 1 2 3 4
Example Output 2
Copy
30 70
Language-Specific Restrictions