Skip to content

Commit 8c6b0b9

Browse files
authored
Add files via upload
commti for the sol of 1230A.cpp
1 parent 9458592 commit 8c6b0b9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

1230A.cpp

+32
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)