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