# |
제출 시각 |
아이디 |
문제 |
언어 |
결과 |
실행 시간 |
메모리 |
1006277 |
2024-06-23T16:02:45 Z |
jer033 |
벽 (IOI14_wall) |
C++17 |
|
3000 ms |
8532 KB |
#include <bits/stdc++.h>
#include "wall.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<n; i++)
finalHeight[i] = 0;
for (int oper = 0; oper<k; oper++)
{
int typ = op[oper];
int l = left[oper];
int r = right[oper];
int h = height[oper];
for (int i=l; i<=r; i++)
{
if (typ==1)
finalHeight[i] = max(finalHeight[i], h);
else
finalHeight[i] = min(finalHeight[i], h);
}
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
10 ms |
604 KB |
Output is correct |
5 |
Correct |
10 ms |
600 KB |
Output is correct |
6 |
Correct |
10 ms |
600 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
600 KB |
Output is correct |
2 |
Correct |
76 ms |
8100 KB |
Output is correct |
3 |
Correct |
639 ms |
3668 KB |
Output is correct |
4 |
Execution timed out |
3036 ms |
8528 KB |
Time limit exceeded |
5 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
368 KB |
Output is correct |
4 |
Correct |
9 ms |
548 KB |
Output is correct |
5 |
Correct |
11 ms |
604 KB |
Output is correct |
6 |
Correct |
8 ms |
548 KB |
Output is correct |
7 |
Correct |
0 ms |
348 KB |
Output is correct |
8 |
Correct |
64 ms |
8096 KB |
Output is correct |
9 |
Correct |
672 ms |
3932 KB |
Output is correct |
10 |
Execution timed out |
3027 ms |
8528 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
10 ms |
548 KB |
Output is correct |
5 |
Correct |
10 ms |
604 KB |
Output is correct |
6 |
Correct |
13 ms |
552 KB |
Output is correct |
7 |
Correct |
0 ms |
344 KB |
Output is correct |
8 |
Correct |
100 ms |
8108 KB |
Output is correct |
9 |
Correct |
653 ms |
3660 KB |
Output is correct |
10 |
Execution timed out |
3067 ms |
8532 KB |
Time limit exceeded |
11 |
Halted |
0 ms |
0 KB |
- |