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 <bits/stdc++.h>
#include "wall.h"
using namespace std;
void buildWall(int n, int k, int op[], int bal[], int jobb[], int ert[], int valasz[]) {
// 1
for (int i=0; i<k; i++) {
for (int j=bal[i]; j<=jobb[i]; j++) {
if (op[i]==1) valasz[j]=max(valasz[j], ert[i]);
if (op[i]==2) valasz[j]=min(valasz[j], ert[i]);
}
}
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... |