Submission #19790339


Source Code Expand

#include "bits/stdc++.h"
using namespace std; 

#ifdef LOCAL
    #include "debug.h"
    #define input freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout);
#else
    #define debug(...) 4
    #define input 4
#endif

using ll = long long;
//const int mod = 998244353;
const int mod = 1e9 + 7;
const int N = 2e5 + 5;
signed main() {
    input;
    cin.tie(nullptr) -> sync_with_stdio(false);
    int t = 1;
    // cin >> t;
    while(t--) {
        int n, s, d;
        cin >> n >> s >> d;
        int ans = 0;
        for(int i = 0; i < n; i++) {
            int x, y;
            cin >> x >> y;
            if(x >= s)
                continue;
            if(d >= y)
                continue;
            ans += 1;
        }   
        if(ans)
            cout << "Yes\n";
        else
            cout << "No\n";

    }
}

Submission Info

Submission Time
Task B - Magic 3
User priyam2k
Language C++ (GCC 9.2.1)
Score 200
Code Size 878 Byte
Status AC
Exec Time 12 ms
Memory 3612 KiB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:9:19: warning: statement has no effect [-Wunused-value]
    9 |     #define input 4
      |                   ^
./Main.cpp:17:5: note: in expansion of macro ‘input’
   17 |     input;
      |     ^~~~~

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 24
Set Name Test Cases
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_small.txt, 05_small.txt, 06_small.txt, 07_small.txt, 08_small.txt, 09_small.txt, 10_small.txt, 11_small.txt, 12_small.txt, 13_small.txt, 14_small.txt, 15_small.txt, 16_small.txt, 17_small.txt, 18_small.txt, 19_large.txt, 20_large.txt, 21_large.txt, 22_large.txt, 23_large.txt, 24_large.txt
Case Name Status Exec Time Memory
01_sample.txt AC 12 ms 3524 KiB
02_sample.txt AC 2 ms 3504 KiB
03_sample.txt AC 2 ms 3512 KiB
04_small.txt AC 2 ms 3584 KiB
05_small.txt AC 2 ms 3576 KiB
06_small.txt AC 2 ms 3584 KiB
07_small.txt AC 2 ms 3544 KiB
08_small.txt AC 2 ms 3544 KiB
09_small.txt AC 2 ms 3504 KiB
10_small.txt AC 2 ms 3452 KiB
11_small.txt AC 2 ms 3544 KiB
12_small.txt AC 2 ms 3500 KiB
13_small.txt AC 2 ms 3512 KiB
14_small.txt AC 2 ms 3448 KiB
15_small.txt AC 3 ms 3496 KiB
16_small.txt AC 2 ms 3448 KiB
17_small.txt AC 3 ms 3452 KiB
18_small.txt AC 2 ms 3612 KiB
19_large.txt AC 2 ms 3576 KiB
20_large.txt AC 2 ms 3504 KiB
21_large.txt AC 3 ms 3604 KiB
22_large.txt AC 2 ms 3548 KiB
23_large.txt AC 3 ms 3548 KiB
24_large.txt AC 2 ms 3516 KiB