답안 #280041

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
280041 2020-08-22T12:57:18 Z erray Examination (JOI19_examination) C++17
2 / 100
3000 ms 2472 KB
// author: erray
#include<bits/stdc++.h>
 
using namespace std;
 
int main () {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  vector<pair<int, int>> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i].first >> a[i].second;
  while (m--) {
    int x, y, z;
    cin >> x >> y >> z;
    int res = 0;
    for (int i = 0; i < n; ++i) {
      if (a[i].first >= x && a[i].second >= y && a[i].first + a[i].second >= z) ++res;
    } 
    cout << res << ' ';
  }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 0 ms 384 KB Output is correct
3 Correct 0 ms 384 KB Output is correct
4 Correct 0 ms 384 KB Output is correct
5 Correct 0 ms 384 KB Output is correct
6 Correct 0 ms 384 KB Output is correct
7 Correct 50 ms 512 KB Output is correct
8 Correct 48 ms 512 KB Output is correct
9 Correct 50 ms 512 KB Output is correct
10 Correct 49 ms 416 KB Output is correct
11 Correct 50 ms 512 KB Output is correct
12 Correct 48 ms 384 KB Output is correct
13 Correct 49 ms 632 KB Output is correct
14 Correct 58 ms 512 KB Output is correct
15 Correct 49 ms 512 KB Output is correct
16 Correct 26 ms 504 KB Output is correct
17 Correct 35 ms 512 KB Output is correct
18 Correct 14 ms 384 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3042 ms 2472 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 3042 ms 2472 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 384 KB Output is correct
2 Correct 0 ms 384 KB Output is correct
3 Correct 0 ms 384 KB Output is correct
4 Correct 0 ms 384 KB Output is correct
5 Correct 0 ms 384 KB Output is correct
6 Correct 0 ms 384 KB Output is correct
7 Correct 50 ms 512 KB Output is correct
8 Correct 48 ms 512 KB Output is correct
9 Correct 50 ms 512 KB Output is correct
10 Correct 49 ms 416 KB Output is correct
11 Correct 50 ms 512 KB Output is correct
12 Correct 48 ms 384 KB Output is correct
13 Correct 49 ms 632 KB Output is correct
14 Correct 58 ms 512 KB Output is correct
15 Correct 49 ms 512 KB Output is correct
16 Correct 26 ms 504 KB Output is correct
17 Correct 35 ms 512 KB Output is correct
18 Correct 14 ms 384 KB Output is correct
19 Execution timed out 3042 ms 2472 KB Time limit exceeded
20 Halted 0 ms 0 KB -