# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
471064 |
2021-09-07T00:34:43 Z |
hibye1217 |
Wall (IOI14_wall) |
C++17 |
|
3000 ms |
18116 KB |
#ifndef NOTSUBMIT
#include "wall.h"
#include <bits/stdc++.h>
using namespace std;
#endif // NOTSUBMIT
void buildWall(int n, int k, int op[], int left[], int right[], int height[], int finalHeight[]){
for (int i = 0; i < k; i++){
int st = left[i], ed = right[i];
int val = height[i];
for (int j = st; j <= ed; j++){
if (op[i] == 1){ finalHeight[j] = max(finalHeight[j], val); }
else{ finalHeight[j] = min(finalHeight[j], val); }
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
2 ms |
332 KB |
Output is correct |
3 |
Correct |
1 ms |
332 KB |
Output is correct |
4 |
Correct |
21 ms |
492 KB |
Output is correct |
5 |
Correct |
21 ms |
492 KB |
Output is correct |
6 |
Correct |
25 ms |
500 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
204 KB |
Output is correct |
2 |
Correct |
153 ms |
13840 KB |
Output is correct |
3 |
Correct |
1418 ms |
7396 KB |
Output is correct |
4 |
Execution timed out |
3068 ms |
18088 KB |
Time limit exceeded |
5 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
2 ms |
332 KB |
Output is correct |
3 |
Correct |
1 ms |
300 KB |
Output is correct |
4 |
Correct |
22 ms |
436 KB |
Output is correct |
5 |
Correct |
21 ms |
496 KB |
Output is correct |
6 |
Correct |
21 ms |
496 KB |
Output is correct |
7 |
Correct |
0 ms |
204 KB |
Output is correct |
8 |
Correct |
156 ms |
13900 KB |
Output is correct |
9 |
Correct |
1429 ms |
7400 KB |
Output is correct |
10 |
Execution timed out |
3055 ms |
18072 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
204 KB |
Output is correct |
2 |
Correct |
2 ms |
436 KB |
Output is correct |
3 |
Correct |
1 ms |
332 KB |
Output is correct |
4 |
Correct |
23 ms |
492 KB |
Output is correct |
5 |
Correct |
23 ms |
500 KB |
Output is correct |
6 |
Correct |
21 ms |
488 KB |
Output is correct |
7 |
Correct |
1 ms |
204 KB |
Output is correct |
8 |
Correct |
165 ms |
13944 KB |
Output is correct |
9 |
Correct |
1402 ms |
7412 KB |
Output is correct |
10 |
Execution timed out |
3079 ms |
18116 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |