Sunday, September 15, 2019

Uri 2787 - Chess

#include< iostream >

using namespace std;

int main() {
    int n, m;
    cin >> n >> m;
    cout << (((n + (m-1))%2 == 0)? 0 : 1 ) << endl;
    return 0;
}

No comments: