We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9458592 commit 8c6b0b9Copy full SHA for 8c6b0b9
1230A.cpp
@@ -0,0 +1,32 @@
1
+#include<bits/stdc++.h>
2
+#include<algorithm>
3
+//#include<conio.h>
4
+
5
+using namespace std;
6
7
+int main(){
8
9
+ int a;
10
+ int b;
11
+ int c;
12
+ int d;
13
14
+ while (cin>>a>>b>>c>>d)
15
+ {
16
+ /* code */
17
+ if(a+b == c+d || a+c == b+d || a+d == b+c || a+b+c == d || a+c+d == b || a+b+d == c || b+c+d == a){
18
+ cout<<"YES"<<endl;
19
+ }else
20
21
+ cout<<"NO"<<endl;
22
+ }
23
24
25
26
27
28
29
30
+ //getch();
31
+ return 0;
32
+}
0 commit comments