답안 #791196

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
791196 2023-07-23T14:43:48 Z shoryu386 Examination (JOI19_examination) C++17
100 / 100
1970 ms 6552 KB
#include <bits//stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("avx2,fma,bmi,bmi2,abm,lzcnt,popcnt")
int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
  int n, q;
  cin >> n >> q;
  int a[n], b[n];
  for(int i = 0; i < n; i++) cin >> a[i] >> b[i];
  int t1, t2, t3, an;
  while (q--) {
    cin >> t1 >> t2 >> t3;
    an = 0;
    for(int i = 0; i < n; i++) {
      if (a[i] >= t1 && b[i] >= t2 && (a[i]+b[i]) >= t3) an++;
    }
    cout << an << "\n";
  }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 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 3 ms 468 KB Output is correct
8 Correct 3 ms 460 KB Output is correct
9 Correct 3 ms 468 KB Output is correct
10 Correct 3 ms 340 KB Output is correct
11 Correct 4 ms 340 KB Output is correct
12 Correct 4 ms 328 KB Output is correct
13 Correct 3 ms 468 KB Output is correct
14 Correct 5 ms 468 KB Output is correct
15 Correct 4 ms 468 KB Output is correct
16 Correct 3 ms 328 KB Output is correct
17 Correct 3 ms 432 KB Output is correct
18 Correct 3 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1839 ms 4100 KB Output is correct
2 Correct 1821 ms 4260 KB Output is correct
3 Correct 1867 ms 4160 KB Output is correct
4 Correct 1900 ms 3368 KB Output is correct
5 Correct 1862 ms 3372 KB Output is correct
6 Correct 1792 ms 2656 KB Output is correct
7 Correct 1904 ms 4076 KB Output is correct
8 Correct 1832 ms 3968 KB Output is correct
9 Correct 1862 ms 4064 KB Output is correct
10 Correct 1874 ms 3204 KB Output is correct
11 Correct 1831 ms 3200 KB Output is correct
12 Correct 1851 ms 2376 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1839 ms 4100 KB Output is correct
2 Correct 1821 ms 4260 KB Output is correct
3 Correct 1867 ms 4160 KB Output is correct
4 Correct 1900 ms 3368 KB Output is correct
5 Correct 1862 ms 3372 KB Output is correct
6 Correct 1792 ms 2656 KB Output is correct
7 Correct 1904 ms 4076 KB Output is correct
8 Correct 1832 ms 3968 KB Output is correct
9 Correct 1862 ms 4064 KB Output is correct
10 Correct 1874 ms 3204 KB Output is correct
11 Correct 1831 ms 3200 KB Output is correct
12 Correct 1851 ms 2376 KB Output is correct
13 Correct 1841 ms 4552 KB Output is correct
14 Correct 1816 ms 4592 KB Output is correct
15 Correct 1817 ms 4092 KB Output is correct
16 Correct 1907 ms 3756 KB Output is correct
17 Correct 1834 ms 3660 KB Output is correct
18 Correct 1903 ms 2612 KB Output is correct
19 Correct 1915 ms 4508 KB Output is correct
20 Correct 1895 ms 4512 KB Output is correct
21 Correct 1922 ms 4536 KB Output is correct
22 Correct 1880 ms 3204 KB Output is correct
23 Correct 1954 ms 3208 KB Output is correct
24 Correct 1873 ms 2268 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 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 3 ms 468 KB Output is correct
8 Correct 3 ms 460 KB Output is correct
9 Correct 3 ms 468 KB Output is correct
10 Correct 3 ms 340 KB Output is correct
11 Correct 4 ms 340 KB Output is correct
12 Correct 4 ms 328 KB Output is correct
13 Correct 3 ms 468 KB Output is correct
14 Correct 5 ms 468 KB Output is correct
15 Correct 4 ms 468 KB Output is correct
16 Correct 3 ms 328 KB Output is correct
17 Correct 3 ms 432 KB Output is correct
18 Correct 3 ms 340 KB Output is correct
19 Correct 1839 ms 4100 KB Output is correct
20 Correct 1821 ms 4260 KB Output is correct
21 Correct 1867 ms 4160 KB Output is correct
22 Correct 1900 ms 3368 KB Output is correct
23 Correct 1862 ms 3372 KB Output is correct
24 Correct 1792 ms 2656 KB Output is correct
25 Correct 1904 ms 4076 KB Output is correct
26 Correct 1832 ms 3968 KB Output is correct
27 Correct 1862 ms 4064 KB Output is correct
28 Correct 1874 ms 3204 KB Output is correct
29 Correct 1831 ms 3200 KB Output is correct
30 Correct 1851 ms 2376 KB Output is correct
31 Correct 1841 ms 4552 KB Output is correct
32 Correct 1816 ms 4592 KB Output is correct
33 Correct 1817 ms 4092 KB Output is correct
34 Correct 1907 ms 3756 KB Output is correct
35 Correct 1834 ms 3660 KB Output is correct
36 Correct 1903 ms 2612 KB Output is correct
37 Correct 1915 ms 4508 KB Output is correct
38 Correct 1895 ms 4512 KB Output is correct
39 Correct 1922 ms 4536 KB Output is correct
40 Correct 1880 ms 3204 KB Output is correct
41 Correct 1954 ms 3208 KB Output is correct
42 Correct 1873 ms 2268 KB Output is correct
43 Correct 1941 ms 6516 KB Output is correct
44 Correct 1862 ms 6500 KB Output is correct
45 Correct 1868 ms 6460 KB Output is correct
46 Correct 1938 ms 4944 KB Output is correct
47 Correct 1887 ms 4928 KB Output is correct
48 Correct 1891 ms 2468 KB Output is correct
49 Correct 1883 ms 6420 KB Output is correct
50 Correct 1870 ms 6552 KB Output is correct
51 Correct 1910 ms 6228 KB Output is correct
52 Correct 1970 ms 4768 KB Output is correct
53 Correct 1877 ms 4000 KB Output is correct