fork download
  1. /* Author : Bui Anh Quan, Ly Thuong Kiet secondary school */
  2. #include<bits/stdc++.h>
  3. using namespace std;
  4. int main(){
  5. long long a,b;
  6. cin >> a >> b;
  7. if((a + b) % 2 == 0)cout << "YES"; // Kiểm tra xem a + b có chẵn hay không //
  8. else cout << "NO";
  9. }
Success #stdin #stdout 0.01s 5428KB
stdin
Standard input is empty
stdout
YES