# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1080978 |
2024-08-29T16:35:59 Z |
DarkMatter |
Wall (IOI14_wall) |
C++17 |
|
3000 ms |
18256 KB |
#include "wall.h"
#include<bits/stdc++.h>
using namespace std;
void buildWall(int n, int k, int op[], int left[], int right[], int height[], int finalHeight[]) {
for (int i = 0; i < k; i++) {
if (op[i] == 1)
for (int j = left[i]; j <= right[i]; j++)
finalHeight[j] = max(finalHeight[j], height[i]);
else
for (int j = left[i]; j <= right[i]; j++)
finalHeight[j] = min(finalHeight[j], height[i]);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
13 ms |
604 KB |
Output is correct |
5 |
Correct |
13 ms |
632 KB |
Output is correct |
6 |
Correct |
13 ms |
604 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
96 ms |
13904 KB |
Output is correct |
3 |
Correct |
924 ms |
7504 KB |
Output is correct |
4 |
Execution timed out |
3091 ms |
18256 KB |
Time limit exceeded |
5 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
436 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
13 ms |
636 KB |
Output is correct |
5 |
Correct |
13 ms |
632 KB |
Output is correct |
6 |
Correct |
13 ms |
604 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
79 ms |
14076 KB |
Output is correct |
9 |
Correct |
918 ms |
7540 KB |
Output is correct |
10 |
Execution timed out |
3062 ms |
18232 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
13 ms |
604 KB |
Output is correct |
5 |
Correct |
13 ms |
604 KB |
Output is correct |
6 |
Correct |
13 ms |
632 KB |
Output is correct |
7 |
Correct |
0 ms |
600 KB |
Output is correct |
8 |
Correct |
84 ms |
14028 KB |
Output is correct |
9 |
Correct |
906 ms |
7532 KB |
Output is correct |
10 |
Execution timed out |
3024 ms |
18164 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |