Submission #982045

#TimeUsernameProblemLanguageResultExecution timeMemory
982045asdasdqwerPlahte (COCI17_plahte)C++14
0 / 160
2021 ms4696 KiB
#include <bits/stdc++.h> using namespace std; #define int int64_t #define pii array<int,2> signed main() { int n,m;cin>>n>>m; vector<array<pii, 2>> v(n); for (auto &x:v) { cin>>x[0][0]>>x[0][1]>>x[1][0]>>x[1][1]; } vector<pii> pts(m); for (auto &x:pts) { cin>>x[0]>>x[1]; int tmp;cin>>tmp; } for (auto &x:v) { int cnt=0; for (auto &y : pts) { if (x[0][0] > y[0] || y[0] > x[1][0]) continue; if (x[0][1] > y[1] || y[1] > x[1][1]) continue; cnt++; } cout<<cnt<<"\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...
#Verdict Execution timeMemoryGrader output
Fetching results...