# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
717222 | 2023-04-01T15:01:33 Z | ismayil | Examination (JOI19_examination) | C++17 | 3000 ms | 3220 KB |
#include<iostream> using namespace std; //#pragma GCC target ("avx2") #pragma GCC optimize("O3") //#pragma GCC optimize("unroll-loops") const int N = 100'001; int n, q, ans; int x, y, z; int s[N], t[N]; int i; int main () { scanf("%d %d", &n, &q); for(i = 0;i<n;i++) { scanf("%d %d", &s[i], &t[i]); } while(q--) { ans=0; scanf("%d %d %d", &x, &y, &z); for(i = 0;i<n;i++) { int ff=(s[i]>=x); int ss=(t[i]>=y); int tt=(s[i]+t[i]>=z); ans+=ff&ss&tt; } printf("%d\n", ans); } }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 292 KB | Output is correct |
2 | Correct | 1 ms | 212 KB | Output is correct |
3 | Correct | 1 ms | 212 KB | Output is correct |
4 | Correct | 1 ms | 212 KB | Output is correct |
5 | Correct | 1 ms | 212 KB | Output is correct |
6 | Correct | 1 ms | 212 KB | Output is correct |
7 | Correct | 9 ms | 468 KB | Output is correct |
8 | Correct | 5 ms | 468 KB | Output is correct |
9 | Correct | 9 ms | 452 KB | Output is correct |
10 | Correct | 7 ms | 340 KB | Output is correct |
11 | Correct | 6 ms | 320 KB | Output is correct |
12 | Correct | 5 ms | 372 KB | Output is correct |
13 | Correct | 6 ms | 452 KB | Output is correct |
14 | Correct | 5 ms | 452 KB | Output is correct |
15 | Correct | 6 ms | 468 KB | Output is correct |
16 | Correct | 6 ms | 340 KB | Output is correct |
17 | Correct | 5 ms | 340 KB | Output is correct |
18 | Correct | 5 ms | 340 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Execution timed out | 3030 ms | 3220 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Execution timed out | 3030 ms | 3220 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 292 KB | Output is correct |
2 | Correct | 1 ms | 212 KB | Output is correct |
3 | Correct | 1 ms | 212 KB | Output is correct |
4 | Correct | 1 ms | 212 KB | Output is correct |
5 | Correct | 1 ms | 212 KB | Output is correct |
6 | Correct | 1 ms | 212 KB | Output is correct |
7 | Correct | 9 ms | 468 KB | Output is correct |
8 | Correct | 5 ms | 468 KB | Output is correct |
9 | Correct | 9 ms | 452 KB | Output is correct |
10 | Correct | 7 ms | 340 KB | Output is correct |
11 | Correct | 6 ms | 320 KB | Output is correct |
12 | Correct | 5 ms | 372 KB | Output is correct |
13 | Correct | 6 ms | 452 KB | Output is correct |
14 | Correct | 5 ms | 452 KB | Output is correct |
15 | Correct | 6 ms | 468 KB | Output is correct |
16 | Correct | 6 ms | 340 KB | Output is correct |
17 | Correct | 5 ms | 340 KB | Output is correct |
18 | Correct | 5 ms | 340 KB | Output is correct |
19 | Execution timed out | 3030 ms | 3220 KB | Time limit exceeded |
20 | Halted | 0 ms | 0 KB | - |