后半段求和 / Second Half Sum
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Problem Statement
You are given an integer sequence of length : . Here, is even. Find the sum of the latter half of , that is, the sum of .
Constraints
- All input values are integers.
- is an even number satisfying .
Input
The input is given from Standard Input in the following format:
Output
Output the answer.
8
1 3 7 8 4 2 5 6
17
The length of the sequence is , and you should find the sum of . Since , output .
2
1 100
100
10
31 41 59 26 53 58 97 93 23 84
355
- Source: AtCoder ABC 473 A