#include<bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
#define piii pair<int,pii>
#define F first
#define S second.first
#define T second.second
#define tn tour[node]
#define fh finalHeight
#define pb push_back
void buildWall(int n, int k, int op[], int left[], int right[], int height[], int finalHeight[]){
for(int j=0;j<k;j++)for(int i=left[j];i<=right[j];i++){
if(op[j]==2)finalHeight[i]=min(finalHeight[i],height[j]);
else finalHeight[i]=max(finalHeight[i],height[j]);
}
//for(int i=0;i<n;i++)cout<<finalHeight[i]<<'\n';
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |