fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. double a,b,c;
  4. int main(){
  5. cin>>a>>b>>c;
  6.  
  7. cout<<a*0.2+b*0.3+c*0.5;
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 5328KB
stdin
100 100 80
stdout
90