Submission #971363

#TimeUsernameProblemLanguageResultExecution timeMemory
971363androExamination (JOI19_examination)C++14
2 / 100
3056 ms3672 KiB
#include <bits/stdc++.h>. #define int long long using namespace std; signed main(){ ios::sync_with_stdio(false); cin.tie(0); int n, q; cin >> n >> q; vector<int> a(n + 1); vector<int> b(n + 1); for(int i = 1; i <= n; i++) { int A, B; cin >> A >> B; a[i] = A; b[i] = B; } while(q--) { int x, y, z; cin >> x >> y >> z; int ans = 0; for(int i = 1; i <= n; i++) { if(a[i] >= x && b[i] >= y && a[i] + b[i] >= z) { ans += 1; } } cout << ans << "\n"; } }

Compilation message (stderr)

examination.cpp:1:25: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h>.
      |                         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...