#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N; cin >> N; vector A(N),B(N); for(auto &a : A) cin >> a; for(auto &b : B) cin >> b; double low = 0,high = 1001001001; for(int t=0; t<70; t++){ double mid = (high+low)/2; vector D(N); for(int i=0; i R(N); double big = 0; for(int i=N-1; i>=0; i--){ R.at(i) = big; big += D.at(i),big = max(0.0,big); } big = 0; bool ok = false; for(int i=0; i