#include<bits/stdc++.h>
using namespace std;
#define int long long
#define endl '\n'
#define inf 1e18
const int mod=1e9+7;
const int N=2e5+5;
int n,m;
int a[N];
void solve(){
cin>>n;
double ans=1e18;
for(int i=1;i<=n;i++){
double t;
cin>>t;
ans=min(ans,(t+1)/i);
}
printf("%.10lf",ans);
}
signed main(){
// ios::sync_with_stdio(false);
// cin.tie(nullptr);
// cout.tie(nullptr);
int tt=1;
// cin>>tt;
while(tt--) solve();
return 0;
}
得分显示(数学)--牛客小白月赛85-B
最新推荐文章于 2024-09-13 16:27:15 发布