# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
715410 | 2023-03-26T15:59:50 Z | fuad27 | Examination (JOI19_examination) | C++17 | 2764 ms | 3524 KB |
#include<iostream> using namespace std; #pragma GCC target ("avx2") #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") const int N = 100'001; int n, q, ans; int x, y, z; int s[N], t[N]; int i; int main () { scanf("%d %d", &n, &q); for(i = 0;i<n;i++) { scanf("%d %d", &s[i], &t[i]); } while(q--) { ans=0; scanf("%d %d %d", &x, &y, &z); for(i = 0;i<n;i++) { int ff=(s[i]>=x); int ss=(t[i]>=y); int tt=(s[i]+t[i]>=z); ans+=ff&ss&tt; } printf("%d\n", ans); } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 1 ms | 212 KB | Output is correct |
3 | Correct | 1 ms | 212 KB | Output is correct |
4 | Correct | 0 ms | 212 KB | Output is correct |
5 | Correct | 0 ms | 308 KB | Output is correct |
6 | Correct | 0 ms | 316 KB | Output is correct |
7 | Correct | 5 ms | 468 KB | Output is correct |
8 | Correct | 5 ms | 468 KB | Output is correct |
9 | Correct | 5 ms | 452 KB | Output is correct |
10 | Correct | 5 ms | 340 KB | Output is correct |
11 | Correct | 4 ms | 340 KB | Output is correct |
12 | Correct | 5 ms | 360 KB | Output is correct |
13 | Correct | 5 ms | 468 KB | Output is correct |
14 | Correct | 6 ms | 464 KB | Output is correct |
15 | Correct | 5 ms | 448 KB | Output is correct |
16 | Correct | 5 ms | 316 KB | Output is correct |
17 | Correct | 5 ms | 444 KB | Output is correct |
18 | Correct | 4 ms | 340 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2611 ms | 3072 KB | Output is correct |
2 | Correct | 2545 ms | 2144 KB | Output is correct |
3 | Correct | 2568 ms | 2228 KB | Output is correct |
4 | Correct | 2548 ms | 2188 KB | Output is correct |
5 | Correct | 2535 ms | 2128 KB | Output is correct |
6 | Correct | 2578 ms | 2184 KB | Output is correct |
7 | Correct | 2596 ms | 2144 KB | Output is correct |
8 | Correct | 2525 ms | 2348 KB | Output is correct |
9 | Correct | 2591 ms | 2328 KB | Output is correct |
10 | Correct | 2637 ms | 1972 KB | Output is correct |
11 | Correct | 2562 ms | 2028 KB | Output is correct |
12 | Correct | 2621 ms | 1940 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2611 ms | 3072 KB | Output is correct |
2 | Correct | 2545 ms | 2144 KB | Output is correct |
3 | Correct | 2568 ms | 2228 KB | Output is correct |
4 | Correct | 2548 ms | 2188 KB | Output is correct |
5 | Correct | 2535 ms | 2128 KB | Output is correct |
6 | Correct | 2578 ms | 2184 KB | Output is correct |
7 | Correct | 2596 ms | 2144 KB | Output is correct |
8 | Correct | 2525 ms | 2348 KB | Output is correct |
9 | Correct | 2591 ms | 2328 KB | Output is correct |
10 | Correct | 2637 ms | 1972 KB | Output is correct |
11 | Correct | 2562 ms | 2028 KB | Output is correct |
12 | Correct | 2621 ms | 1940 KB | Output is correct |
13 | Correct | 2557 ms | 2148 KB | Output is correct |
14 | Correct | 2602 ms | 3308 KB | Output is correct |
15 | Correct | 2551 ms | 3388 KB | Output is correct |
16 | Correct | 2723 ms | 3288 KB | Output is correct |
17 | Correct | 2585 ms | 3416 KB | Output is correct |
18 | Correct | 2584 ms | 2776 KB | Output is correct |
19 | Correct | 2601 ms | 3468 KB | Output is correct |
20 | Correct | 2682 ms | 3524 KB | Output is correct |
21 | Correct | 2575 ms | 3464 KB | Output is correct |
22 | Correct | 2594 ms | 3216 KB | Output is correct |
23 | Correct | 2653 ms | 3328 KB | Output is correct |
24 | Correct | 2598 ms | 2480 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 1 ms | 212 KB | Output is correct |
3 | Correct | 1 ms | 212 KB | Output is correct |
4 | Correct | 0 ms | 212 KB | Output is correct |
5 | Correct | 0 ms | 308 KB | Output is correct |
6 | Correct | 0 ms | 316 KB | Output is correct |
7 | Correct | 5 ms | 468 KB | Output is correct |
8 | Correct | 5 ms | 468 KB | Output is correct |
9 | Correct | 5 ms | 452 KB | Output is correct |
10 | Correct | 5 ms | 340 KB | Output is correct |
11 | Correct | 4 ms | 340 KB | Output is correct |
12 | Correct | 5 ms | 360 KB | Output is correct |
13 | Correct | 5 ms | 468 KB | Output is correct |
14 | Correct | 6 ms | 464 KB | Output is correct |
15 | Correct | 5 ms | 448 KB | Output is correct |
16 | Correct | 5 ms | 316 KB | Output is correct |
17 | Correct | 5 ms | 444 KB | Output is correct |
18 | Correct | 4 ms | 340 KB | Output is correct |
19 | Correct | 2611 ms | 3072 KB | Output is correct |
20 | Correct | 2545 ms | 2144 KB | Output is correct |
21 | Correct | 2568 ms | 2228 KB | Output is correct |
22 | Correct | 2548 ms | 2188 KB | Output is correct |
23 | Correct | 2535 ms | 2128 KB | Output is correct |
24 | Correct | 2578 ms | 2184 KB | Output is correct |
25 | Correct | 2596 ms | 2144 KB | Output is correct |
26 | Correct | 2525 ms | 2348 KB | Output is correct |
27 | Correct | 2591 ms | 2328 KB | Output is correct |
28 | Correct | 2637 ms | 1972 KB | Output is correct |
29 | Correct | 2562 ms | 2028 KB | Output is correct |
30 | Correct | 2621 ms | 1940 KB | Output is correct |
31 | Correct | 2557 ms | 2148 KB | Output is correct |
32 | Correct | 2602 ms | 3308 KB | Output is correct |
33 | Correct | 2551 ms | 3388 KB | Output is correct |
34 | Correct | 2723 ms | 3288 KB | Output is correct |
35 | Correct | 2585 ms | 3416 KB | Output is correct |
36 | Correct | 2584 ms | 2776 KB | Output is correct |
37 | Correct | 2601 ms | 3468 KB | Output is correct |
38 | Correct | 2682 ms | 3524 KB | Output is correct |
39 | Correct | 2575 ms | 3464 KB | Output is correct |
40 | Correct | 2594 ms | 3216 KB | Output is correct |
41 | Correct | 2653 ms | 3328 KB | Output is correct |
42 | Correct | 2598 ms | 2480 KB | Output is correct |
43 | Correct | 2615 ms | 3524 KB | Output is correct |
44 | Correct | 2755 ms | 3436 KB | Output is correct |
45 | Correct | 2588 ms | 3520 KB | Output is correct |
46 | Correct | 2635 ms | 3464 KB | Output is correct |
47 | Correct | 2641 ms | 3404 KB | Output is correct |
48 | Correct | 2617 ms | 2668 KB | Output is correct |
49 | Correct | 2598 ms | 3408 KB | Output is correct |
50 | Correct | 2764 ms | 3316 KB | Output is correct |
51 | Correct | 2650 ms | 3496 KB | Output is correct |
52 | Correct | 2573 ms | 3436 KB | Output is correct |
53 | Correct | 2624 ms | 3276 KB | Output is correct |