Advertisement
Saleh127

at 105A

Oct 12th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define test int t; cin>>t; for(int cs=1;cs<=t;cs++)
  5. int main()
  6. {
  7. ios_base::sync_with_stdio(0);
  8. cin.tie(0);cout.tie(0);
  9. ll a[1000] ,c,d,e,f,i,j,k,l;
  10. for(i=0;i<4;i++)
  11. {
  12. cin>>a[i];
  13. }
  14. sort(a,a+4);
  15. if(a[0]+a[1]+a[2]==a[3]||a[0]+a[3]==a[1]+a[2])cout<<"Yes"<<endl;
  16. else cout<<"No"<<endl;
  17.  
  18.  
  19. return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement