Submission #888534

#TimeUsernameProblemLanguageResultExecution timeMemory
888534GabrielWall (IOI14_wall)C++17
8 / 100
3080 ms8516 KiB
#include "wall.h" #include "bits/stdc++.h" using namespace std; void buildWall(int n, int k, int op[], int left[], int right[], int height[], int finalHeight[]){ int i = 0; while(i < k){ if(op[i] == 1){ while(left[i] <= right[i]){ finalHeight[left[i]] = max(finalHeight[left[i]], height[i]); left[i]++; } } else { while(left[i] <= right[i]){ finalHeight[left[i]] = min(finalHeight[left[i]], height[i]); left[i]++; } } i++; } 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...