eolymp
bolt
Try our new interface for solving problems
Problems

Even and odd numbers

published at 1/24/24, 10:25:10 am

include<bits/stdc++.h>

using namespace std; int main() { long long a , b , c; cin>>a>>b>>c; if(a % 2 == 0 and b % 2 == 0 and c % 2 == 0 or a % 2 != 0 and b % 2 != 0 and c % 2 != 0) { cout<<"NO"; } else { cout<<"YES"; }

}