제출 #1353084

#제출 시각아이디문제언어결과실행 시간메모리
1353084lukaye_19Art Collections (BOI22_art)C++20
컴파일 에러
0 ms0 KiB
#include <art.h>
#include <bits/stdc++.h>
using namespace std;

vector<int>valid;

/*
vector <int> ans = {1,3,2};
vector <int> pos = {1,3,2};

int cnt=0;

void answer(vector <int> v){
    cout<<cnt<<"\n";
    if (v==ans){cout<<"YES";}
    else{for (auto x : v){cout<<x<<' ';}}
}

int publish(vector <int> v){
    cnt++;
    int n=v.size();
    int sm=0;
    for (int i=n-1; i>=1; i--){
        for (int j=i-1; j>=0; j--){
            if (pos[v[j]-1]>pos[v[i]-1]){sm++;}
        }
    }
    return sm;
}
*/

void solve(int N)
{
    vector<int>c = {1,2,3};
    
    while (!valid.size())
    {
        int size = publish(c);
        
        if (!size) valid = c;
        else next_permutation(c.begin(),c.end());
    }
    
    answer(valid);
    
    return;
}

컴파일 시 표준 에러 (stderr) 메시지

art.cpp:1:10: fatal error: art.h: No such file or directory
    1 | #include <art.h>
      |          ^~~~~~~
compilation terminated.