My issue
how to increase the precision
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin>>t;
while(t--){
float loss;
int n;
cin>>n;
loss = 0.000000000;
for(int i=0; i<n; i++){
float p, q, d;
cin>>p>>q>>d;
loss+=q*p*(1.000000000-(1.000000000+(d/100))*(1.000000000-(d/100)));
}
cout<<loss<<endl;
}
// your code goes here
}
Problem Link: A Big Sale Practice Coding Problem