# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
714656 |
2023-03-25T07:21:35 Z |
TheSahib |
Plahte (COCI17_plahte) |
C++14 |
|
2000 ms |
447668 KB |
#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
using namespace std;
const int MAX = 8e4 + 8;
set<int> colors[MAX];
int n, m;
int squares[MAX][4];
int points[MAX][3];
int main(){
cin >> n >> m;
for (int i = 0; i < n; i++)
{
cin >> squares[i][0] >> squares[i][1] >> squares[i][2] >> squares[i][3];
}
for (int i = 0; i < m; i++)
{
cin >> points[i][0] >> points[i][1] >> points[i][2];
}
for (int i = 0; i < m; i++)
{
for (int j = 0; j < n; j++)
{
if(squares[j][0] <= points[i][0] && squares[j][2] >= points[i][0] && squares[j][1] <= points[i][1] && squares[j][3] >= points[i][1]){
colors[j].insert(points[i][2]);
}
}
}
for (int i = 0; i < n; i++)
{
cout << colors[i].size() << '\n';
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2072 ms |
121068 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2053 ms |
311996 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2074 ms |
437068 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2086 ms |
447668 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
2074 ms |
387288 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |