Reverse
Statement
t: n of numbers
multiply min, max and middle element
Input description
t: number of integers
n : input numbers
Output description
r : result
Constraints
Game modes
Test cases
Test 1 Test
Input
3
2 3 5
Output
30
Validator 1 Validator
Input
5
2 3 4 5 6
Output
48
Test 2 Test
Input
7
2 4 6 8 10 12 14
Output
224
Validator 2 Validator
Input
7
1 1 1 1 1 1 1
Output
1
Test 3 Test
Input
5
2 2 2 2 2
Output
8
Validator 3 Validator
Input
5
2 2 2 2 3
Output
12
Test 4 Test
Input
7
1 2 3 4 5 6 7
Output
28
Validator 4 Validator
Input
7
1 2 3 3 3 6 7
Output
21
Solution language
Solution
Stub generator input