Untitled

 avatar
user_9000366
plain_text
18 days ago
351 B
0
Indexable
const int N = 100;
int a[100][2];
int n, x, y;

bool solve(int i) {
    if (i == n)
        return false;
    if (a[i][0] < x && a[i][1] > y)
        return true;
    return solve(i + 1);
}

void Mesh_JOO() {
    cin >> n >> x >> y;
    for (int i = 0; i < n; ++i) {
        cin >> a[i][0] >> a[i][1];
    }
    cout << solve(0);
}
Editor is loading...
Leave a Comment