fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int x,y,z,u,v,w;
  7. cin>>x>>y>>z>>u>>v>>w;
  8.  
  9. cout<<u/100*x + v/50*y + w/20*z;
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 5320KB
stdin
600 400 300
1000 800 400
stdout
18400