제출 #50163

#제출 시각아이디문제언어결과실행 시간메모리
50163Talant벽 (IOI14_wall)C++17
8 / 100
3066 ms67844 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[]){ for (int i = 0; i < k; i ++) { int type = op[i]; int l = left[i]; int r = right[i]; int h = height[i]; if (type == 1) { for (int j = l; j <= r; j ++) finalHeight[j] = max(finalHeight[j],h); } else { for (int j = l; j <= r; j ++) finalHeight[j] = min(finalHeight[j],h); } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...