#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int N,Q; cin>>N>>Q; vector>I(Q); for(auto &i:I)cin>>i[0]>>i[1]>>i[2],--i[0]; mapcnt; for(auto i:I){ cnt[i[1]]+=1; cnt[i[2]]-=1; } vector e_time(1,-1); vector e_cnt(1,0.0); double c=0; for(auto i:cnt){ if(c==0){ e_cnt.push_back(0); }else{ e_cnt.push_back((i.first-e_time.back())/c); } e_time.push_back(i.first); c+=i.second; } for(int i=0;i