답안 #1064527

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1064527 2024-08-18T14:02:30 Z sunboi 곤돌라 (IOI14_gondola) C++17
10 / 100
6 ms 1864 KB

#include <bits/stdc++.h>
#include "gondola.h"
using namespace std;



int valid(int n, int inputSeq[]){
    vector<int> a;
    for (int i = 0; i < n; i++){
        if (inputSeq[i] == 1) a.push_back(inputSeq[i]);
        else if (!a.empty()){
            a.push_back(inputSeq[i]);
        }
    }
    for (int i = 0; i < n; i++){
        if (inputSeq[i] == 1) break;
        
        a.push_back(inputSeq[i]);
    }
    return is_sorted(a.begin(), a.end());
}


int replacement(int n, int gondolaSeq[], int replacementSeq[]){
    return 0;
}
int countReplacement(int n, int inputSeq[]){
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 352 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 3 ms 996 KB Output is correct
7 Correct 6 ms 1752 KB Output is correct
8 Correct 5 ms 1612 KB Output is correct
9 Correct 2 ms 860 KB Output is correct
10 Correct 6 ms 1752 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 352 KB Output is correct
2 Correct 1 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 3 ms 1116 KB Output is correct
7 Correct 6 ms 1864 KB Output is correct
8 Correct 5 ms 1604 KB Output is correct
9 Correct 2 ms 864 KB Output is correct
10 Correct 6 ms 1752 KB Output is correct
11 Correct 0 ms 348 KB Output is correct
12 Incorrect 0 ms 344 KB Output isn't correct
13 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 360 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 352 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 360 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 352 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 352 KB Output isn't correct
2 Halted 0 ms 0 KB -