Fading Coder

One Final Commit for the Last Sprint

Finding the Maximum Product of Five Elements in an Array

You are given an array of integers. Find the maximum possible product of five elements from the array, where the indices of these elements are in strictly increasing order. Input The input consists of multiple test cases. The first line contains an enteger t (1 ≤ t ≤ 2 × 10^4) — the number of test c...