Submission #981141

#TimeUsernameProblemLanguageResultExecution timeMemory
981141aaaaaarrozExamination (JOI19_examination)C++17
100 / 100
1592 ms2196 KiB
#include <bits/stdc++.h> using namespace std; #pragma GCC target("avx2") #pragma GCC optimize("O3") //#pragma GCC optimize("unroll-loops") 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...