{"problem":{"name":"Max Even","description":{"content":"You are given a sequence $A=(A_1,A_2,\\ldots,A_N)$ of length $N$ consisting of non-negative integers. Determine if there is an even number represented as the sum of two different elements of $A$. If it","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc272_c"},"statements":[{"statement_type":"Markdown","content":"You are given a sequence $A=(A_1,A_2,\\ldots,A_N)$ of length $N$ consisting of non-negative integers.\nDetermine if there is an even number represented as the sum of two different elements of $A$. If it exists, find the maximum such number.\n\n## Constraints\n\n*   $2\\leq N \\leq 2\\times 10^5$\n*   $0\\leq A_i\\leq 10^9$\n*   The elements of $A$ are distinct.\n*   All values in the input are integers.\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$N$\n$A_1$ $A_2$ $\\ldots$ $A_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc272_c","tags":[],"sample_group":[["3\n2 3 4","6\n\nThe values represented as the sum of two distinct elements of $A$ are $5$, $6$, and $7$. We have an even number here, and the maximum is $6$."],["2\n1 0","\\-1\n\nThe value represented as the sum of two distinct elements of $A$ is $1$. We have no even number here, so `-1` should be printed."]],"created_at":"2026-03-03 11:01:14"}}