Submission #1048328

# Submission time Handle Problem Language Result Execution time Memory
1048328 2024-08-08T06:48:28 Z matere Examination (JOI19_examination) C++14
2 / 100
3000 ms 1204 KB
#include<bits/stdc++.h>
using namespace std;
int n,q,a[100005],b[100005];
int main(){
    cin>>n>>q;
    for(int i=1;i<=n;i++){
        cin>>a[i]>>b[i];
    }
    int x,y,z;
    for(int i=1;i<=q;i++){
        int ans=0;
        cin>>x>>y>>z;
        for(int j=1;j<=n;j++){
            if(a[j]>=x and b[j]>=y and a[j]+b[j]>=z){
                ans++;
            }
        }
        cout<<ans<<endl;
    }
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 344 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 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 32 ms 476 KB Output is correct
8 Correct 38 ms 344 KB Output is correct
9 Correct 40 ms 348 KB Output is correct
10 Correct 31 ms 348 KB Output is correct
11 Correct 31 ms 480 KB Output is correct
12 Correct 30 ms 348 KB Output is correct
13 Correct 32 ms 580 KB Output is correct
14 Correct 32 ms 604 KB Output is correct
15 Correct 32 ms 604 KB Output is correct
16 Correct 22 ms 532 KB Output is correct
17 Correct 23 ms 572 KB Output is correct
18 Correct 9 ms 348 KB Output is correct
# Verdict Execution time Memory Grader output
1 Execution timed out 3058 ms 1204 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 3058 ms 1204 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 1 ms 344 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 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 32 ms 476 KB Output is correct
8 Correct 38 ms 344 KB Output is correct
9 Correct 40 ms 348 KB Output is correct
10 Correct 31 ms 348 KB Output is correct
11 Correct 31 ms 480 KB Output is correct
12 Correct 30 ms 348 KB Output is correct
13 Correct 32 ms 580 KB Output is correct
14 Correct 32 ms 604 KB Output is correct
15 Correct 32 ms 604 KB Output is correct
16 Correct 22 ms 532 KB Output is correct
17 Correct 23 ms 572 KB Output is correct
18 Correct 9 ms 348 KB Output is correct
19 Execution timed out 3058 ms 1204 KB Time limit exceeded
20 Halted 0 ms 0 KB -