제출 #888534

#제출 시각아이디문제언어결과실행 시간메모리
888534Gabriel벽 (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...