fork download
  1. N = int(input())
  2. lines = []
  3. truelines = []
  4. multy=1
  5. i=-1
  6. for q in range(0, N):
  7. lines.append(int(input()))
  8. for line in lines:
  9. i+=1
  10. if line % 2 == 1:
  11. newlines = lines[i+6:]
  12. for newline in newlines:
  13. if newline % 2 == 1:
  14. multy=newline*line
  15. truelines.append(multy)
  16. print(min(truelines) if truelines else -1)
  17.  
Success #stdin #stdout 0.02s 8688KB
stdin
11
12
45
5
3
17
23
21
20
19
12
26
stdout
95