답안 #966303

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
966303 2024-04-19T16:31:14 Z Trisanu_Das Examination (JOI19_examination) C++17
100 / 100
1651 ms 6772 KB
#include <bits/stdc++.h>
using namespace std;
 
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
 
int x[100001], y[100001];
 
int main() {
  int n, q;
  cin >> n >> q;
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> y[i];
  }
  for (int i = 0; i < q; i++) {
    int ans = 0;
    int a, b, c;
    cin >> a >> b >> c;
    for (int j = 0; j < n; j++) {
      if (x[j] >= a && y[j] >= b && x[j] + y[j] >= c) ans++;
    }
    cout << ans << '\n';
  }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 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 9 ms 348 KB Output is correct
8 Correct 9 ms 348 KB Output is correct
9 Correct 9 ms 600 KB Output is correct
10 Correct 8 ms 348 KB Output is correct
11 Correct 8 ms 476 KB Output is correct
12 Correct 8 ms 604 KB Output is correct
13 Correct 9 ms 348 KB Output is correct
14 Correct 8 ms 348 KB Output is correct
15 Correct 9 ms 344 KB Output is correct
16 Correct 8 ms 348 KB Output is correct
17 Correct 8 ms 348 KB Output is correct
18 Correct 7 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1498 ms 2244 KB Output is correct
2 Correct 1571 ms 2180 KB Output is correct
3 Correct 1515 ms 2168 KB Output is correct
4 Correct 1508 ms 2204 KB Output is correct
5 Correct 1522 ms 1676 KB Output is correct
6 Correct 1529 ms 2064 KB Output is correct
7 Correct 1579 ms 1752 KB Output is correct
8 Correct 1536 ms 1572 KB Output is correct
9 Correct 1535 ms 2008 KB Output is correct
10 Correct 1517 ms 1876 KB Output is correct
11 Correct 1505 ms 1592 KB Output is correct
12 Correct 1488 ms 1616 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1498 ms 2244 KB Output is correct
2 Correct 1571 ms 2180 KB Output is correct
3 Correct 1515 ms 2168 KB Output is correct
4 Correct 1508 ms 2204 KB Output is correct
5 Correct 1522 ms 1676 KB Output is correct
6 Correct 1529 ms 2064 KB Output is correct
7 Correct 1579 ms 1752 KB Output is correct
8 Correct 1536 ms 1572 KB Output is correct
9 Correct 1535 ms 2008 KB Output is correct
10 Correct 1517 ms 1876 KB Output is correct
11 Correct 1505 ms 1592 KB Output is correct
12 Correct 1488 ms 1616 KB Output is correct
13 Correct 1554 ms 2104 KB Output is correct
14 Correct 1478 ms 1944 KB Output is correct
15 Correct 1525 ms 1924 KB Output is correct
16 Correct 1504 ms 2120 KB Output is correct
17 Correct 1518 ms 1824 KB Output is correct
18 Correct 1503 ms 1988 KB Output is correct
19 Correct 1562 ms 2100 KB Output is correct
20 Correct 1492 ms 1732 KB Output is correct
21 Correct 1464 ms 1876 KB Output is correct
22 Correct 1528 ms 1596 KB Output is correct
23 Correct 1526 ms 1744 KB Output is correct
24 Correct 1503 ms 1672 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 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 9 ms 348 KB Output is correct
8 Correct 9 ms 348 KB Output is correct
9 Correct 9 ms 600 KB Output is correct
10 Correct 8 ms 348 KB Output is correct
11 Correct 8 ms 476 KB Output is correct
12 Correct 8 ms 604 KB Output is correct
13 Correct 9 ms 348 KB Output is correct
14 Correct 8 ms 348 KB Output is correct
15 Correct 9 ms 344 KB Output is correct
16 Correct 8 ms 348 KB Output is correct
17 Correct 8 ms 348 KB Output is correct
18 Correct 7 ms 348 KB Output is correct
19 Correct 1498 ms 2244 KB Output is correct
20 Correct 1571 ms 2180 KB Output is correct
21 Correct 1515 ms 2168 KB Output is correct
22 Correct 1508 ms 2204 KB Output is correct
23 Correct 1522 ms 1676 KB Output is correct
24 Correct 1529 ms 2064 KB Output is correct
25 Correct 1579 ms 1752 KB Output is correct
26 Correct 1536 ms 1572 KB Output is correct
27 Correct 1535 ms 2008 KB Output is correct
28 Correct 1517 ms 1876 KB Output is correct
29 Correct 1505 ms 1592 KB Output is correct
30 Correct 1488 ms 1616 KB Output is correct
31 Correct 1554 ms 2104 KB Output is correct
32 Correct 1478 ms 1944 KB Output is correct
33 Correct 1525 ms 1924 KB Output is correct
34 Correct 1504 ms 2120 KB Output is correct
35 Correct 1518 ms 1824 KB Output is correct
36 Correct 1503 ms 1988 KB Output is correct
37 Correct 1562 ms 2100 KB Output is correct
38 Correct 1492 ms 1732 KB Output is correct
39 Correct 1464 ms 1876 KB Output is correct
40 Correct 1528 ms 1596 KB Output is correct
41 Correct 1526 ms 1744 KB Output is correct
42 Correct 1503 ms 1672 KB Output is correct
43 Correct 1565 ms 6756 KB Output is correct
44 Correct 1651 ms 6636 KB Output is correct
45 Correct 1543 ms 6588 KB Output is correct
46 Correct 1516 ms 5392 KB Output is correct
47 Correct 1577 ms 5132 KB Output is correct
48 Correct 1490 ms 2840 KB Output is correct
49 Correct 1584 ms 6564 KB Output is correct
50 Correct 1622 ms 6772 KB Output is correct
51 Correct 1504 ms 6224 KB Output is correct
52 Correct 1508 ms 4688 KB Output is correct
53 Correct 1554 ms 4264 KB Output is correct