797b专题

CodeForces - 797B Odd sum

Odd sum You are given sequence a1, a2, …, an of integer numbers of length n. Your task is to find such subsequence that its sum is odd and maximum among all such subsequences. It’s guaranteed that gi