#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, q, m = 100000; cin >> n >> q; vector imos(m + 1); vector> a(q); for(int i = 0; i < q; i++){ int t, l, r; cin >> t >> l >> r; t--; a[i] = make_tuple(t, l, r); imos[l]++; imos[r]--; } vector s(m + 1); for(int i = 0; i < m; i++){ imos[i + 1] += imos[i]; s[i + 1] = s[i] + (imos[i] != 0 ? 1.0 / imos[i] : 0); } vector ans(n); for(auto &&tup : a){ int t, l, r; tie(t, l, r) = tup; ans[t] += s[r] - s[l]; } cout << fixed << setprecision(15); for(int i = 0; i < n; i++){ cout << ans[i] << '\n'; } }