Maximum Product Codeforces Problems solution
You are given an array of integers
The input consists of multiple test cases. The first line contains an integer
The first line of each test case contains a single integer
The second line of each test case contains
It's guaranteed that the sum of
For each test case, print one integer — the answer to the problem.
4 5 -1 -2 -3 -4 -5 6 -1 -2 -3 1 2 -1 6 -1 0 0 0 -1 -1 6 -9 -7 -5 -3 -2 1
-120 12 0 945
In the first test case, choosing
In the second test case, choosing
In the third test case, choosing
In the fourth test case, choosing
- Get link
- X
- Other Apps
Labels
c++ codeforces- Get link
- X
- Other Apps
Comments
Post a Comment