QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#212937#91. Secret PermutationAhmed57#Compile Error//C++23463b2023-10-13 23:21:222024-07-04 02:49:58

Judging History

你现在查看的是最新测评结果

  • [2024-07-04 02:49:58]
  • 评测
  • [2023-10-13 23:21:22]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;
#include "permutationc.h"

void solve(int N){
    vector<int> v;
    for(int i = 1;i<=N;i++){
        v.push_back(i);
    }
    do{
        if(query(v)==N-1){
            vector<int> lol(N);
        int cnt = 0;
            for(auto i:v){
                lol[i-1] = ++cnt;
            }
            answer(lol);
            return ;
        }
    }while(next_permutation(v.begin(),v.end()));
}

Details

answer.code:4:10: fatal error: permutationc.h: No such file or directory
    4 | #include "permutationc.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.