# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
928233 |
2024-02-16T05:39:09 Z |
tamir1 |
Wall (IOI14_wall) |
C++14 |
|
3000 ms |
18064 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[]){
int i,j;
for(i=0;i<k;i++){
for(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 |
1 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
448 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
15 ms |
632 KB |
Output is correct |
5 |
Correct |
15 ms |
604 KB |
Output is correct |
6 |
Correct |
15 ms |
604 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
108 ms |
13924 KB |
Output is correct |
3 |
Correct |
1064 ms |
4500 KB |
Output is correct |
4 |
Execution timed out |
3053 ms |
18004 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 |
2 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
496 KB |
Output is correct |
4 |
Correct |
15 ms |
604 KB |
Output is correct |
5 |
Correct |
15 ms |
604 KB |
Output is correct |
6 |
Correct |
17 ms |
604 KB |
Output is correct |
7 |
Correct |
0 ms |
344 KB |
Output is correct |
8 |
Correct |
115 ms |
14008 KB |
Output is correct |
9 |
Correct |
1094 ms |
7760 KB |
Output is correct |
10 |
Execution timed out |
3047 ms |
18064 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
2 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
15 ms |
640 KB |
Output is correct |
5 |
Correct |
16 ms |
604 KB |
Output is correct |
6 |
Correct |
16 ms |
604 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
113 ms |
13904 KB |
Output is correct |
9 |
Correct |
1091 ms |
7400 KB |
Output is correct |
10 |
Execution timed out |
3008 ms |
18004 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |