# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
717224 | 2023-04-01T15:02:21 Z | ismayil | Examination (JOI19_examination) | C++17 | 3000 ms | 4112 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 | 0 ms | 212 KB | Output is correct |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Correct | 0 ms | 212 KB | Output is correct |
5 | Correct | 0 ms | 212 KB | Output is correct |
6 | Correct | 0 ms | 212 KB | Output is correct |
7 | Correct | 5 ms | 340 KB | Output is correct |
8 | Correct | 7 ms | 340 KB | Output is correct |
9 | Correct | 5 ms | 340 KB | Output is correct |
10 | Correct | 5 ms | 340 KB | Output is correct |
11 | Correct | 5 ms | 340 KB | Output is correct |
12 | Correct | 5 ms | 340 KB | Output is correct |
13 | Correct | 5 ms | 340 KB | Output is correct |
14 | Correct | 5 ms | 340 KB | Output is correct |
15 | Correct | 5 ms | 340 KB | Output is correct |
16 | Correct | 5 ms | 340 KB | Output is correct |
17 | Correct | 6 ms | 340 KB | Output is correct |
18 | Correct | 4 ms | 340 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2920 ms | 1532 KB | Output is correct |
2 | Correct | 2780 ms | 3868 KB | Output is correct |
3 | Correct | 2698 ms | 3872 KB | Output is correct |
4 | Correct | 2727 ms | 3500 KB | Output is correct |
5 | Correct | 2814 ms | 3380 KB | Output is correct |
6 | Correct | 2768 ms | 2700 KB | Output is correct |
7 | Correct | 2827 ms | 3884 KB | Output is correct |
8 | Correct | 2931 ms | 3864 KB | Output is correct |
9 | Correct | 2776 ms | 3936 KB | Output is correct |
10 | Correct | 2736 ms | 3208 KB | Output is correct |
11 | Correct | 2796 ms | 3404 KB | Output is correct |
12 | Correct | 2792 ms | 2388 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 2920 ms | 1532 KB | Output is correct |
2 | Correct | 2780 ms | 3868 KB | Output is correct |
3 | Correct | 2698 ms | 3872 KB | Output is correct |
4 | Correct | 2727 ms | 3500 KB | Output is correct |
5 | Correct | 2814 ms | 3380 KB | Output is correct |
6 | Correct | 2768 ms | 2700 KB | Output is correct |
7 | Correct | 2827 ms | 3884 KB | Output is correct |
8 | Correct | 2931 ms | 3864 KB | Output is correct |
9 | Correct | 2776 ms | 3936 KB | Output is correct |
10 | Correct | 2736 ms | 3208 KB | Output is correct |
11 | Correct | 2796 ms | 3404 KB | Output is correct |
12 | Correct | 2792 ms | 2388 KB | Output is correct |
13 | Correct | 2784 ms | 3804 KB | Output is correct |
14 | Correct | 2801 ms | 4112 KB | Output is correct |
15 | Correct | 2730 ms | 3760 KB | Output is correct |
16 | Execution timed out | 3044 ms | 3676 KB | Time limit exceeded |
17 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 212 KB | Output is correct |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Correct | 0 ms | 212 KB | Output is correct |
5 | Correct | 0 ms | 212 KB | Output is correct |
6 | Correct | 0 ms | 212 KB | Output is correct |
7 | Correct | 5 ms | 340 KB | Output is correct |
8 | Correct | 7 ms | 340 KB | Output is correct |
9 | Correct | 5 ms | 340 KB | Output is correct |
10 | Correct | 5 ms | 340 KB | Output is correct |
11 | Correct | 5 ms | 340 KB | Output is correct |
12 | Correct | 5 ms | 340 KB | Output is correct |
13 | Correct | 5 ms | 340 KB | Output is correct |
14 | Correct | 5 ms | 340 KB | Output is correct |
15 | Correct | 5 ms | 340 KB | Output is correct |
16 | Correct | 5 ms | 340 KB | Output is correct |
17 | Correct | 6 ms | 340 KB | Output is correct |
18 | Correct | 4 ms | 340 KB | Output is correct |
19 | Correct | 2920 ms | 1532 KB | Output is correct |
20 | Correct | 2780 ms | 3868 KB | Output is correct |
21 | Correct | 2698 ms | 3872 KB | Output is correct |
22 | Correct | 2727 ms | 3500 KB | Output is correct |
23 | Correct | 2814 ms | 3380 KB | Output is correct |
24 | Correct | 2768 ms | 2700 KB | Output is correct |
25 | Correct | 2827 ms | 3884 KB | Output is correct |
26 | Correct | 2931 ms | 3864 KB | Output is correct |
27 | Correct | 2776 ms | 3936 KB | Output is correct |
28 | Correct | 2736 ms | 3208 KB | Output is correct |
29 | Correct | 2796 ms | 3404 KB | Output is correct |
30 | Correct | 2792 ms | 2388 KB | Output is correct |
31 | Correct | 2784 ms | 3804 KB | Output is correct |
32 | Correct | 2801 ms | 4112 KB | Output is correct |
33 | Correct | 2730 ms | 3760 KB | Output is correct |
34 | Execution timed out | 3044 ms | 3676 KB | Time limit exceeded |
35 | Halted | 0 ms | 0 KB | - |