#include "messy.h"
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define pb push_back
// #define int long long
#define fi first
#define se second
const int N = 3e5 + 5, M = 1e9 + 7, LG = 20;
int n , A[N] , w , r;
vector<int> restore_permutation(int n, int w, int r) {
string s = "";
for (int i=0 ; i<n ; i++) s += '0';
for (int i=0 ; i<n ; i++){
s[i] = '1';
add_element(s);
}
compile_set();
vector<int> P(n);
bool in[n];
for (int i=0 ; i<n ; i++){
string t = "";
for (int j=0 ; j<n ; j++){
if (in[j]){
t += '1';
}else{
t += '0';
}
}
for (int j=0 ; j<n ; j++){
if (t[j] == '0'){
t[j] = '1';
bool x = check_element(t);
if (x){
in[j] = 1;
P[i] = j;
}
t[j] = '0';
}
}
}
return P;
}
// signed main(){
// cin >> n >> w >> r;
// restore_permutation(n,w,r);
// }
컴파일 시 표준 에러 (stderr) 메시지
messy.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~
messy_c.h:1:9: warning: #pragma once in main file
1 | #pragma once
| ^~~~| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |