#include using namespace std; // #include // using namespace atcoder; using ll =long long; typedef pair P; #define SORT(a) sort((a).begin(),(a).end()) #define REV(a) reverse((a).begin(),(a).end()) #define For(i, a, b) for(ll i = (a) ; i < (b) ; ++i) #define rep(i, n) For(i, 0, n) #define debug(x) cerr << #x << " = " << (x) << endl; template inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; } void coY() {cout <<"Yes"<> n >> m >> c; vector a(n); rep(i, n)cin>>a[i]; vector b(m); rep(i, m)cin>>b[i]; SORT(a); SORT(b); REV(b); // bは大きい順 ll tmp = 0; // 尺取法のind vector cnt(n); rep(i,n){ ll x = a[i]; // x * b[tmp] >= c なら tmp+1 if(tmp == m){ cnt[i] = tmp; } else { while(x * b[tmp] > c){ tmp++; if(tmp == m) break; } cnt[i] = tmp; } } ll sum = 0; rep(i,n){ sum += cnt[i]; } debug(sum); cout << setprecision(15); cout << 1. *((double)sum / (double)(n*m)) << endl; }