제출 #1147881

#제출 시각아이디문제언어결과실행 시간메모리
1147881BlockOG벽 (IOI14_wall)C++20
8 / 100
3095 ms8520 KiB
// mrrrow mnyaa ;3c // go play vivid/stasis! it's a really awesome free game on steam void buildWall(int n, int k, int op[], int left[], int right[], int height[], int finalHeight[]) { for (int it = 0; it < k; it++) { if (op[it] == 1) { for (int i = left[it]; i <= right[it]; i++) { if (finalHeight[i] < height[it]) finalHeight[i] = height[it]; } } else { for (int i = left[it]; i <= right[it]; i++) { if (finalHeight[i] > height[it]) finalHeight[i] = height[it]; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...