initial commit
This commit is contained in:
parent
f7090f7720
commit
0f1a818bce
33
1742A Sum/1742A.cpp
Normal file
33
1742A Sum/1742A.cpp
Normal file
@ -0,0 +1,33 @@
|
||||
#include<bits/stdc++.h>
|
||||
using namespace std;
|
||||
using ll = long long;
|
||||
|
||||
void solve()
|
||||
{
|
||||
int a,b,c;
|
||||
cin>>a>>b>>c;
|
||||
if(a==b+c)
|
||||
{
|
||||
cout<<"YES"<<endl;
|
||||
}
|
||||
else if(b==a+c)
|
||||
{
|
||||
cout<<"YES"<<endl;
|
||||
}
|
||||
else if(c==a+b)
|
||||
{
|
||||
cout<<"YES"<<endl;
|
||||
}
|
||||
else cout<<"NO"<<endl;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
ios_base::sync_with_stdio(false);
|
||||
cin.tie(nullptr);
|
||||
|
||||
int TC = 1;
|
||||
cin >> TC;
|
||||
cin.ignore();
|
||||
while (TC--) solve();
|
||||
}
|
Loading…
Reference in New Issue
Block a user