답안 #775526

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
775526 2023-07-06T13:22:32 Z Trumling 벽 (IOI14_wall) C++14
8 / 100
3000 ms 18068 KB
#include "wall.h"
#include <bits/stdc++.h>
using namespace std; 

typedef long long ll;
#define pb push_back
#define F first
#define S second
#define enter cout<<'\n';
#define INF 99999999999999999
#define MOD 1000000007
#define all(x) x.begin(),x.end()

void buildWall(int n, int k, int op[], int left[], int right[], int height[], int *finalHeight){

  for(int i=0;i<k;i++)
  for(int j=left[i];j<=right[i];j++)
    if(op[i]==1)
    {
      if(finalHeight[j]<height[i])
      finalHeight[j]=height[i];
    }
    else
      if(finalHeight[j]>height[i])
      finalHeight[j]=height[i];

  return; 
}

# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 16 ms 504 KB Output is correct
5 Correct 16 ms 500 KB Output is correct
6 Correct 16 ms 500 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 110 ms 8052 KB Output is correct
3 Correct 829 ms 7392 KB Output is correct
4 Execution timed out 3058 ms 18056 KB Time limit exceeded
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 2 ms 340 KB Output is correct
3 Correct 1 ms 340 KB Output is correct
4 Correct 15 ms 468 KB Output is correct
5 Correct 16 ms 468 KB Output is correct
6 Correct 16 ms 496 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Correct 125 ms 13816 KB Output is correct
9 Correct 838 ms 7400 KB Output is correct
10 Execution timed out 3061 ms 18016 KB Time limit exceeded
11 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 2 ms 372 KB Output is correct
3 Correct 1 ms 312 KB Output is correct
4 Correct 16 ms 468 KB Output is correct
5 Correct 19 ms 468 KB Output is correct
6 Correct 19 ms 476 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 111 ms 13936 KB Output is correct
9 Correct 837 ms 7400 KB Output is correct
10 Execution timed out 3052 ms 18068 KB Time limit exceeded
11 Halted 0 ms 0 KB -