# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
929050 |
2024-02-17T14:52:13 Z |
NourWael |
Plahte (COCI17_plahte) |
C++17 |
|
2000 ms |
494224 KB |
#include <bits/stdc++.h>
#define int long long
using namespace std;
int const mxN = 2e5+5;
int n,m;
pair<pair<int,int>,pair<int,int>> v[80005];
set<int> col[80005];
signed main() {
ios_base::sync_with_stdio(0);
cin.tie(NULL);
cout.tie(NULL);
cin>>n>>m;
for(int i=0; i<n; i++) {
int a,b,c,d; cin>>a>>b>>c>>d;
v[i] = {{a,b},{c,d}};
}
for(int i=0; i<m; i++) {
int x,y,c; cin>>x>>y>>c;
for(int j=0; j<n; j++) {
if(v[j].first.first<=x && x<=v[j].second.first && v[j].first.second<=y && y<=v[j].second.second) col[j].insert(c);
}
}
for(int i=0; i<n; i++) cout<<col[i].size()<<'\n';
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2097 ms |
200792 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2063 ms |
394068 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2060 ms |
481492 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2082 ms |
494224 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2081 ms |
443588 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |