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