Advertisement
HaciyevAlik

Untitled

Nov 5th, 2022
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n,m;
  7. cin>>n>>m;
  8. if((n%2==0 && m%2==0) || (n%2!=0 && m%2!=0))
  9. {
  10. cout<< 1;
  11. }
  12. else
  13. {
  14. cout<< 0;
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement