Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <math.h>
- using namespace std;
- int a, b, d, e;
- int main(int argc, const char * argv[]) {
- cin >> a >> d >> b >> e;
- if(a + d == b + e || a - d == b - e || a == b || d == e){
- cout << "YES";
- }
- else{
- cout << "NO";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement