# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
733534 |
2023-05-01T02:28:27 Z |
Julto |
Wall (IOI14_wall) |
C++14 |
|
3000 ms |
18140 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++){
for(int j = left[i]; j <= right[i]; j++){
if(op[i] == 1){
finalHeight[j] = max(height[i], finalHeight[j]);
}
else{
finalHeight[j] = min(height[i], finalHeight[j]);
}
}
}
/*for(int i = 0; i < n; i++){
cout << finalHeight[i] << " ";
}*/
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
2 ms |
340 KB |
Output is correct |
3 |
Correct |
2 ms |
340 KB |
Output is correct |
4 |
Correct |
23 ms |
492 KB |
Output is correct |
5 |
Correct |
19 ms |
492 KB |
Output is correct |
6 |
Correct |
19 ms |
508 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
147 ms |
8056 KB |
Output is correct |
3 |
Correct |
1365 ms |
7400 KB |
Output is correct |
4 |
Execution timed out |
3021 ms |
18124 KB |
Time limit exceeded |
5 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
2 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
312 KB |
Output is correct |
4 |
Correct |
19 ms |
492 KB |
Output is correct |
5 |
Correct |
26 ms |
488 KB |
Output is correct |
6 |
Correct |
18 ms |
500 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
143 ms |
13928 KB |
Output is correct |
9 |
Correct |
1328 ms |
7396 KB |
Output is correct |
10 |
Execution timed out |
3047 ms |
17996 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
2 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
308 KB |
Output is correct |
4 |
Correct |
18 ms |
484 KB |
Output is correct |
5 |
Correct |
21 ms |
588 KB |
Output is correct |
6 |
Correct |
22 ms |
492 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
136 ms |
13900 KB |
Output is correct |
9 |
Correct |
1318 ms |
7392 KB |
Output is correct |
10 |
Execution timed out |
3028 ms |
18140 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |