A Really Odd Sequence

아직 제출이 없습니다시간 제한6초메모리 제한512 MB

문제

According to our long-established tradition, the best statements are those kept short.

Given a sequence of integers, find the largest sum of a consecutive subsequence of odd length.

입력

The first line of input contains the number of test cases zz. The descriptions of the test cases follow.

The first line of each test case contains the length of the sequence nn (1n1,000,0001 \leq n \leq 1\\,000\\,000).

The next line contains nn integers a_1,a_2,,a_na\_1, a\_2, \ldots, a\_n (109a_i109-10^9 \leq a\_i \leq 10^9), the elements of the sequence.

The total length of all sequences in all test cases does not exceed 5,000,0005\\,000\\,000.

출력

For each test case, output the largest sum on a separate line.