# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
888527 |
2023-12-17T16:07:15 Z |
aguss |
Wall (IOI14_wall) |
C++14 |
|
3000 ms |
8516 KB |
#include <bits/stdc++.h>
#include "wall.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(finalHeight[j], height[i]);
else
finalHeight[j] = min(finalHeight[j], height[i]);
}
return;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
16 ms |
568 KB |
Output is correct |
5 |
Correct |
15 ms |
600 KB |
Output is correct |
6 |
Correct |
15 ms |
604 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
108 ms |
8020 KB |
Output is correct |
3 |
Correct |
1063 ms |
3744 KB |
Output is correct |
4 |
Execution timed out |
3005 ms |
8516 KB |
Time limit exceeded |
5 |
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 |
15 ms |
604 KB |
Output is correct |
5 |
Correct |
15 ms |
348 KB |
Output is correct |
6 |
Correct |
16 ms |
348 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
108 ms |
8212 KB |
Output is correct |
9 |
Correct |
1060 ms |
3740 KB |
Output is correct |
10 |
Execution timed out |
3052 ms |
8496 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 |
15 ms |
604 KB |
Output is correct |
5 |
Correct |
15 ms |
548 KB |
Output is correct |
6 |
Correct |
15 ms |
604 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
108 ms |
8020 KB |
Output is correct |
9 |
Correct |
1066 ms |
3920 KB |
Output is correct |
10 |
Execution timed out |
3052 ms |
8452 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |