Submission #981140

#TimeUsernameProblemLanguageResultExecution timeMemory
981140aaaaaarrozExamination (JOI19_examination)C++17
2 / 100
3046 ms1436 KiB
#include <bits/stdc++.h> using namespace std; int x[100001], y[100001]; int main() { int n, q; cin >> n >> q; for (int i = 0; i < n; i++) { cin >> x[i] >> y[i]; } for (int i = 0; i < q; i++) { 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'; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...