提出 #67512414


ソースコード 拡げる

/** gnu specific **/
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
/** contains everything I need in std **/
#include <bits/stdc++.h>

#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(S) ((int)S.size())
#define FOR(i, st_, n) for(int i = st_; i < n; ++i)
#define RFOR(i, n, end_) for(int i = (n)-1; i >= end_; --i)
#define x first
#define y second
#define pb push_back
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
typedef pair<double, double> pdd;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<ull, ull> pull;
using namespace __gnu_pbds;
typedef tree<ll, null_type, less<>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
using namespace std;
#ifdef ONPC
mt19937 rnd(228);
#else
mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
#endif


int32_t main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    ll n,x,y;
    cin >> n >> x >> y;
    ll ans = 0;
    FOR(i,0,n)
    {
        ll a,b;
        cin >> a >> b;
        if(a <= x && b >= y)
            ans++;
    }
    cout << ans << endl;
}

提出情報

提出日時
問題 A - Streamer Takahashi
ユーザ VolodyaDudchak
言語 C++ 23 (gcc 12.2)
得点 100
コード長 1263 Byte
結果 AC
実行時間 1 ms
メモリ 3532 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 13
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 1 ms 3500 KiB
00_sample_01.txt AC 1 ms 3528 KiB
00_sample_02.txt AC 1 ms 3364 KiB
01_test_00.txt AC 1 ms 3420 KiB
01_test_01.txt AC 1 ms 3488 KiB
01_test_02.txt AC 1 ms 3464 KiB
01_test_03.txt AC 1 ms 3420 KiB
01_test_04.txt AC 1 ms 3500 KiB
01_test_05.txt AC 1 ms 3464 KiB
01_test_06.txt AC 1 ms 3532 KiB
01_test_07.txt AC 1 ms 3488 KiB
01_test_08.txt AC 1 ms 3412 KiB
01_test_09.txt AC 1 ms 3528 KiB