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