#include<bits/stdc++.h>
#define N 10100
using namespace std;
int n,k;
double a[N];
bool check(double p) {
int sum=0;
for(int i=1; i<=n; i++) {
sum+=(int)(a[i]/p);
}
if(sum>=k)return 1;
return 0;
}
int main() {
cin>>n>>k;
for(int i=1; i<=n; i++) {
cin>>a[i];
}
double l=0,r=1e5,mid;
while(l+0.0005<r) {
mid=(l+r)/2;
if(check(mid))l=mid;
else r=mid;
}
cout<<fixed<<setprecision(2)<<l<<endl;
return 0;
}
题目说误差不超过0.01能过最后两个点超了0.01过不了:(