답안 #964221

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
964221 2024-04-16T12:46:24 Z Unforgettablepl Examination (JOI19_examination) C++17
2 / 100
3000 ms 3688 KB
#include <bits/stdc++.h>
using namespace std;

#define int long long


int32_t main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    int n,q;
    cin >> n >> q;
    vector<pair<int,int>> students(n);
    for(auto&i:students)cin>>i.first>>i.second;
    for(int i=1;i<=q;i++){
        int a,b,c;cin>>a>>b>>c;
        int ans = 0;
        for(auto&i:students)if(i.first>=a and i.second>=b and i.first+i.second>=c)ans++;
        cout << ans << '\n';
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 38 ms 640 KB Output is correct
8 Correct 37 ms 652 KB Output is correct
9 Correct 41 ms 748 KB Output is correct
10 Correct 37 ms 604 KB Output is correct
11 Correct 42 ms 604 KB Output is correct
12 Correct 37 ms 348 KB Output is correct
13 Correct 37 ms 604 KB Output is correct
14 Correct 38 ms 604 KB Output is correct
15 Correct 38 ms 616 KB Output is correct
16 Correct 19 ms 348 KB Output is correct
17 Correct 33 ms 604 KB Output is correct
18 Correct 7 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3055 ms 3688 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3055 ms 3688 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 1 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 38 ms 640 KB Output is correct
8 Correct 37 ms 652 KB Output is correct
9 Correct 41 ms 748 KB Output is correct
10 Correct 37 ms 604 KB Output is correct
11 Correct 42 ms 604 KB Output is correct
12 Correct 37 ms 348 KB Output is correct
13 Correct 37 ms 604 KB Output is correct
14 Correct 38 ms 604 KB Output is correct
15 Correct 38 ms 616 KB Output is correct
16 Correct 19 ms 348 KB Output is correct
17 Correct 33 ms 604 KB Output is correct
18 Correct 7 ms 344 KB Output is correct
19 Execution timed out 3055 ms 3688 KB Time limit exceeded
20 Halted 0 ms 0 KB -