답안 #946761

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
946761 2024-03-15T03:57:44 Z irmuun 벽 (IOI14_wall) C++17
8 / 100
3000 ms 18256 KB
#include<bits/stdc++.h>

using namespace std;

#define ll long long
#define pb push_back
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
#define rall(s) s.rbegin(),s.rend()

void buildWall(int n, int k, int op[], int l[], int r[], int h[], int H[]){
    for(int i=0;i<k;i++){
        for(int j=l[i];j<=r[i];j++){
            if(op[i]==1){
                H[j]=max(H[j],h[i]);
            }
            else{
                H[j]=min(H[j],h[i]);
            }
        }
    }
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 2 ms 576 KB Output is correct
3 Correct 1 ms 492 KB Output is correct
4 Correct 15 ms 640 KB Output is correct
5 Correct 15 ms 604 KB Output is correct
6 Correct 16 ms 636 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 111 ms 14064 KB Output is correct
3 Correct 1074 ms 6280 KB Output is correct
4 Execution timed out 3015 ms 18256 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 448 KB Output is correct
3 Correct 1 ms 348 KB Output is correct
4 Correct 15 ms 664 KB Output is correct
5 Correct 16 ms 604 KB Output is correct
6 Correct 15 ms 604 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 116 ms 14156 KB Output is correct
9 Correct 1066 ms 7760 KB Output is correct
10 Execution timed out 3050 ms 18116 KB Time limit exceeded
11 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 448 KB Output is correct
4 Correct 15 ms 632 KB Output is correct
5 Correct 15 ms 604 KB Output is correct
6 Correct 15 ms 632 KB Output is correct
7 Correct 1 ms 348 KB Output is correct
8 Correct 118 ms 13900 KB Output is correct
9 Correct 1071 ms 9320 KB Output is correct
10 Execution timed out 3029 ms 18004 KB Time limit exceeded
11 Halted 0 ms 0 KB -