Skip to content

Commit

Permalink
Add beecrowd problem 2787
Browse files Browse the repository at this point in the history
  • Loading branch information
ithallotulio committed Aug 2, 2024
1 parent c0fa7f8 commit a7943a1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions beecrowd/1-beginner/2787.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <bits/stdc++.h>

using namespace std;

int main() {
int lines, columns;
cin >> lines >> columns;

if ((lines + columns) & 1) {
cout << 0 << endl;
} else {
cout << 1 << endl;
}

return 0;
}

0 comments on commit a7943a1

Please sign in to comment.