1:

do 1 to N

v

*= input;*

if (v

if (v

*% 2) vImp = (vImp + 1) % 2;*

if (vif (v

*< 0 || v**>= n) negativo = true;*

2:

if (vImp == 1 || negativo || (n == 1 && v[1] > 0))

puts("Not possible"); next case;

3:

sort v

check erdos

print result

next case

I hope help u. I get ac in 0.186s

Schindler2:

if (vImp == 1 || negativo || (n == 1 && v[1] > 0))

puts("Not possible"); next case;

3:

sort v

check erdos

print result

next case

I hope help u. I get ac in 0.186s

Schindler