Skip to content

Commit

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

using namespace std;

int main() {
int x, y, m;
int xi, yi;
while (cin >> x >> y >> m) {
while (m--) {
cin >> xi >> yi;
if (max(xi, yi) <= max(x, y) && min(xi,yi) <= min(x, y)) {
cout << "Sim" << endl;
} else {
cout << "Nao" << endl;
}
}
}
return 0;
}

0 comments on commit 08c4e55

Please sign in to comment.