답안 #202349

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
202349 2020-02-15T17:34:36 Z a_player 벽 (IOI14_wall) C++14
8 / 100
3000 ms 18200 KB
#include <bits/stdc++.h>

using namespace std;
#define fh finalHeight


void buildWall(int n, int k, int op[], int left[], int right[], int height[], int finalHeight[]){
  for(int i=0;i<n;i++)fh[i]=0;

  for(int i=0;i<k;i++){
      if(op[i]==1){
          for(int j=left[i];j<=right[i];j++)fh[j]=max(fh[j],height[i]);
      }else{
          for(int j=left[i];j<=right[i];j++)fh[j]=min(fh[j],height[i]);
      }

  }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 7 ms 508 KB Output is correct
3 Correct 6 ms 376 KB Output is correct
4 Correct 24 ms 632 KB Output is correct
5 Correct 26 ms 632 KB Output is correct
6 Correct 27 ms 632 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 376 KB Output is correct
2 Execution timed out 70 ms 5632 KB Time limit exceeded (wall clock)
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 6 ms 504 KB Output is correct
3 Correct 6 ms 376 KB Output is correct
4 Correct 24 ms 632 KB Output is correct
5 Correct 25 ms 632 KB Output is correct
6 Correct 25 ms 632 KB Output is correct
7 Correct 5 ms 256 KB Output is correct
8 Correct 176 ms 13944 KB Output is correct
9 Correct 1329 ms 7552 KB Output is correct
10 Execution timed out 3012 ms 18168 KB Time limit exceeded
11 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 6 ms 376 KB Output is correct
3 Correct 6 ms 376 KB Output is correct
4 Correct 24 ms 632 KB Output is correct
5 Correct 25 ms 632 KB Output is correct
6 Correct 25 ms 632 KB Output is correct
7 Correct 5 ms 256 KB Output is correct
8 Correct 181 ms 13948 KB Output is correct
9 Correct 1343 ms 7492 KB Output is correct
10 Execution timed out 3022 ms 18200 KB Time limit exceeded
11 Halted 0 ms 0 KB -