This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "wall.h"
using namespace std;
int colNum, phaseNum,res;
void buildWall(int n, int k, int op[], int left[], int right[], int height[], int finalHeight[]){
for(phaseNum = 0; phaseNum < k; ++phaseNum) {
for(colNum = left[phaseNum]; colNum <= right[phaseNum]; ++colNum) {
if((op[phaseNum] == 1) != (height[phaseNum] < res)) {
finalHeight[colNum] = height[phaseNum];
}
}
}
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... |