제출 #971363

#제출 시각아이디문제언어결과실행 시간메모리
971363androExamination (JOI19_examination)C++14
2 / 100
3056 ms3672 KiB
#include <bits/stdc++.h>.

#define int long long

using namespace std;

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n, q;
    cin >> n >> q;
    vector<int> a(n + 1);
    vector<int> b(n + 1);
    for(int i = 1; i <= n; i++) {
        int A, B;
        cin >> A >> B;
        a[i] = A;
        b[i] = B;
    }
    while(q--) {
        int x, y, z;
        cin >> x >> y >> z;
        int ans = 0;
        for(int i = 1; i <= n; i++) {
            if(a[i] >= x && b[i] >= y && a[i] + b[i] >= z) {
                ans += 1;
            }
        }
        cout << ans << "\n";
    }
}

컴파일 시 표준 에러 (stderr) 메시지

examination.cpp:1:25: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>.
      |                         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...