fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b,c,d;
  6.  
  7. cin>>a>>b>>c>>d;
  8.  
  9. cout<<(a*c)+(b*d);
  10.  
  11. return 0;
  12. }
Success #stdin #stdout 0s 4524KB
stdin
2 5 3 20
stdout
106