QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#212937 | #91. Secret Permutation | Ahmed57# | Compile Error | / | / | C++23 | 463b | 2023-10-13 23:21:22 | 2024-07-04 02:49:58 |
Judging History
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.