답안 #966302

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
966302 2024-04-19T16:30:48 Z Trisanu_Das Examination (JOI19_examination) C++17
2 / 100
3000 ms 2736 KB
#pragma GCC target("avx2")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#define int long long
 
int x[100001], y[100001];
 
signed main() {
  int n, q;
  cin >> n >> q;
  for (int i = 0; i < n; i++) cin >> x[i] >> y[i];
  while(q--){
    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 1 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 344 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 14 ms 604 KB Output is correct
8 Correct 14 ms 860 KB Output is correct
9 Correct 11 ms 648 KB Output is correct
10 Correct 10 ms 348 KB Output is correct
11 Correct 10 ms 604 KB Output is correct
12 Correct 8 ms 348 KB Output is correct
13 Correct 12 ms 600 KB Output is correct
14 Correct 10 ms 604 KB Output is correct
15 Correct 10 ms 604 KB Output is correct
16 Correct 12 ms 540 KB Output is correct
17 Correct 10 ms 600 KB Output is correct
18 Correct 11 ms 600 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3052 ms 2736 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3052 ms 2736 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 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 344 KB Output is correct
6 Correct 1 ms 348 KB Output is correct
7 Correct 14 ms 604 KB Output is correct
8 Correct 14 ms 860 KB Output is correct
9 Correct 11 ms 648 KB Output is correct
10 Correct 10 ms 348 KB Output is correct
11 Correct 10 ms 604 KB Output is correct
12 Correct 8 ms 348 KB Output is correct
13 Correct 12 ms 600 KB Output is correct
14 Correct 10 ms 604 KB Output is correct
15 Correct 10 ms 604 KB Output is correct
16 Correct 12 ms 540 KB Output is correct
17 Correct 10 ms 600 KB Output is correct
18 Correct 11 ms 600 KB Output is correct
19 Execution timed out 3052 ms 2736 KB Time limit exceeded
20 Halted 0 ms 0 KB -