n, q = list(map(int, input().split()))
arr = []
for _ in range(n):
score = list(map(int, input().split()))
arr.append(score)
for i in range(q):
x, y, z = list(map(int, input().split()))
for k in range(n):
if arr[k][0] >= x and arr[k][1] >= y and arr[k][0] + arr[k][1] >= z:
count += 1
print(count)
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
21 ms |
3308 KB |
Execution failed because the return code was nonzero |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
488 ms |
22492 KB |
Execution failed because the return code was nonzero |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
488 ms |
22492 KB |
Execution failed because the return code was nonzero |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
21 ms |
3308 KB |
Execution failed because the return code was nonzero |
2 |
Halted |
0 ms |
0 KB |
- |