fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a;
  5. int b;
  6. cin >> a >> b;
  7. cout << ( a + b ) * 2 << endl << a * b;
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
-1486503366
-1250370400