#P1746. Ezzat and Two Subsequences

Ezzat and Two Subsequences

题目描述

PDF

输入格式

As shown in the PDF

输出格式

As shown in the PDF

样例

4 
3 
3 1 2 
3 
-7 -6 -6 
3 
2 2 2 
4 
17 3 5 -3 

4.500000000 
-12.500000000 
4.000000000 
18.666666667 

提示

来自 Codeforces by 杨鑫