# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
775526 |
2023-07-06T13:22:32 Z |
Trumling |
Wall (IOI14_wall) |
C++14 |
|
3000 ms |
18068 KB |
#include "wall.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define F first
#define S second
#define enter cout<<'\n';
#define INF 99999999999999999
#define MOD 1000000007
#define all(x) x.begin(),x.end()
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)
{
if(finalHeight[j]<height[i])
finalHeight[j]=height[i];
}
else
if(finalHeight[j]>height[i])
finalHeight[j]=height[i];
return;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
1 ms |
340 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
16 ms |
504 KB |
Output is correct |
5 |
Correct |
16 ms |
500 KB |
Output is correct |
6 |
Correct |
16 ms |
500 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
212 KB |
Output is correct |
2 |
Correct |
110 ms |
8052 KB |
Output is correct |
3 |
Correct |
829 ms |
7392 KB |
Output is correct |
4 |
Execution timed out |
3058 ms |
18056 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 |
340 KB |
Output is correct |
4 |
Correct |
15 ms |
468 KB |
Output is correct |
5 |
Correct |
16 ms |
468 KB |
Output is correct |
6 |
Correct |
16 ms |
496 KB |
Output is correct |
7 |
Correct |
1 ms |
212 KB |
Output is correct |
8 |
Correct |
125 ms |
13816 KB |
Output is correct |
9 |
Correct |
838 ms |
7400 KB |
Output is correct |
10 |
Execution timed out |
3061 ms |
18016 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Output is correct |
2 |
Correct |
2 ms |
372 KB |
Output is correct |
3 |
Correct |
1 ms |
312 KB |
Output is correct |
4 |
Correct |
16 ms |
468 KB |
Output is correct |
5 |
Correct |
19 ms |
468 KB |
Output is correct |
6 |
Correct |
19 ms |
476 KB |
Output is correct |
7 |
Correct |
0 ms |
212 KB |
Output is correct |
8 |
Correct |
111 ms |
13936 KB |
Output is correct |
9 |
Correct |
837 ms |
7400 KB |
Output is correct |
10 |
Execution timed out |
3052 ms |
18068 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |