#include using namespace std; using ll = long long; using ld = long double; using P = pair; #define fix(x) fixed << setprecision(x) #define asc(x) x, vector, greater #define rep(i, n) for(ll i = 0; i < n; i++) #define all(x) (x).begin(),(x).end() templatebool chmin(T&a, const T&b){if(a>b){a=b;return 1;}return 0;} templatebool chmax(T&a, const T&b){if(a> n >> q; vector imos(M+1,0); vector x(q), s(q), t(q); rep(i,q){ cin >> x[i] >> s[i] >> t[i]; s[i]++; t[i]++; x[i]--; imos[s[i]]++; imos[t[i]]--; } vector tot(M+1,1), ans(n,0); rep(i,M) imos[i+1] += imos[i]; rep(i,M+1) if(imos[i]) tot[i] /= imos[i]; rep(i,M) tot[i+1] += tot[i]; rep(i,q) ans[x[i]] += tot[t[i]-1] - tot[s[i]-1]; cout << fix(16); rep(i,n) cout << ans[i] << '\n'; return 0; }