답안 #963521

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
963521 2024-04-15T09:02:02 Z BhavayGoyal Examination (JOI19_examination) C++14
2 / 100
3000 ms 2848 KB
#include <bits/stdc++.h>
using namespace std;
 
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 344 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 1 ms 600 KB Output is correct
7 Correct 46 ms 604 KB Output is correct
8 Correct 47 ms 604 KB Output is correct
9 Correct 47 ms 604 KB Output is correct
10 Correct 49 ms 572 KB Output is correct
11 Correct 47 ms 344 KB Output is correct
12 Correct 46 ms 348 KB Output is correct
13 Correct 46 ms 348 KB Output is correct
14 Correct 46 ms 600 KB Output is correct
15 Correct 47 ms 600 KB Output is correct
16 Correct 26 ms 544 KB Output is correct
17 Correct 34 ms 348 KB Output is correct
18 Correct 14 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3005 ms 2848 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3005 ms 2848 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 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 1 ms 600 KB Output is correct
7 Correct 46 ms 604 KB Output is correct
8 Correct 47 ms 604 KB Output is correct
9 Correct 47 ms 604 KB Output is correct
10 Correct 49 ms 572 KB Output is correct
11 Correct 47 ms 344 KB Output is correct
12 Correct 46 ms 348 KB Output is correct
13 Correct 46 ms 348 KB Output is correct
14 Correct 46 ms 600 KB Output is correct
15 Correct 47 ms 600 KB Output is correct
16 Correct 26 ms 544 KB Output is correct
17 Correct 34 ms 348 KB Output is correct
18 Correct 14 ms 348 KB Output is correct
19 Execution timed out 3005 ms 2848 KB Time limit exceeded
20 Halted 0 ms 0 KB -