fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int a,b,c;
  7. cin>>a>>b>>c;
  8.  
  9. if(a+b==c || a+c==b || b+c==a)
  10. cout<<1;
  11. else
  12. cout<<0;
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 5316KB
stdin
1
1
1
stdout
Standard output is empty