The Three Topics codechef solution in c++
#include<iostream> #define ll long long using namespace std; void solve() { ll a, b, c, x; cin >> a >> b >> c >> x; if (a==x||b==x||c==x) cout << "YES\n"; else cout << "NO\n"; } int main() { solve(); return 0; }
Source: www.codegrepper.com