必须保留一位小数。
错误:cout<<qry(1,1,n,l,r)<<"\n";
cout<<qry(1,1,n,l,r)<<"\n";
正确:cout<<fixed<<setprecision(1)<<qry(1,1,n,l,r)<<"\n";
cout<<fixed<<setprecision(1)<<qry(1,1,n,l,r)<<"\n";