Submission #1235903

#TimeUsernameProblemLanguageResultExecution timeMemory
1235903MasterDebaterWall (IOI14_wall)C++20
8 / 100
3095 ms8520 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...