- محدودیت زمان: ۱ ثانیه
- محدودیت حافظه: ۲۵۶ مگابایت
Let’s assume some definitions:
- Subarray: a non-empty continuous part of an array, eg. are subarrays of array .
- Geometric mean: for a set of numbers the geometric mean is defined as .
Array consists of non-negative integers. is given, you have to find a subarray with the minimum value of geometric mean.
ورودی
The input consists one or more datasets. Integer at the first line indicates the number of datasets.
In each dataset, there is one integer that shows the length of array , following integers will show the elements of .
خروجی
For each dataset, print only one number: the answer to the problem. Print the number with exactly two digits of precision.
مثالها
ورودی نمونه ۱
خروجی نمونه ۱
ارسال پاسخ برای این سؤال