# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
50163 |
2018-06-08T06:34:27 Z |
Talant |
벽 (IOI14_wall) |
C++17 |
|
3000 ms |
67844 KB |
#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);
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
376 KB |
Output is correct |
2 |
Correct |
4 ms |
496 KB |
Output is correct |
3 |
Correct |
3 ms |
496 KB |
Output is correct |
4 |
Correct |
19 ms |
780 KB |
Output is correct |
5 |
Correct |
21 ms |
968 KB |
Output is correct |
6 |
Correct |
23 ms |
1016 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
1016 KB |
Output is correct |
2 |
Correct |
184 ms |
14740 KB |
Output is correct |
3 |
Correct |
1129 ms |
14740 KB |
Output is correct |
4 |
Execution timed out |
3051 ms |
28592 KB |
Time limit exceeded |
5 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
28592 KB |
Output is correct |
2 |
Correct |
5 ms |
28592 KB |
Output is correct |
3 |
Correct |
3 ms |
28592 KB |
Output is correct |
4 |
Correct |
19 ms |
28592 KB |
Output is correct |
5 |
Correct |
27 ms |
28592 KB |
Output is correct |
6 |
Correct |
22 ms |
28592 KB |
Output is correct |
7 |
Correct |
2 ms |
28592 KB |
Output is correct |
8 |
Correct |
188 ms |
34356 KB |
Output is correct |
9 |
Correct |
1245 ms |
34356 KB |
Output is correct |
10 |
Execution timed out |
3055 ms |
48124 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
48124 KB |
Output is correct |
2 |
Correct |
5 ms |
48124 KB |
Output is correct |
3 |
Correct |
4 ms |
48124 KB |
Output is correct |
4 |
Correct |
22 ms |
48124 KB |
Output is correct |
5 |
Correct |
18 ms |
48124 KB |
Output is correct |
6 |
Correct |
20 ms |
48124 KB |
Output is correct |
7 |
Correct |
2 ms |
48124 KB |
Output is correct |
8 |
Correct |
202 ms |
53904 KB |
Output is correct |
9 |
Correct |
1152 ms |
53904 KB |
Output is correct |
10 |
Execution timed out |
3066 ms |
67844 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |