제출 #1368484

#제출 시각아이디문제언어결과실행 시간메모리
1368484bronze_coderUnscrambling a Messy Bug (IOI16_messy)C++20
38 / 100
1 ms344 KiB
#include "messy.h"
#include <bits/stdc++.h>
using namespace std;

vector<int> restore_permutation(int n,int w,int r){
    string s(n,'0');
    for(int i=0;i<n;i++){
        s[i] = '1';
        add_element(s);
    }
    compile_set();
    string s1(n,'0');
    vector<int> ans(n);
    for(int i=0;i<n;i++){
        for(int j=0;j<n;j++){
            if(s1[j]=='0'){
                s1[j] = '1';
                if(check_element(s1)){
                    ans[j] = i;
                    break;
                }
                else{
                    s1[j] = '0';
                }
            }
        }
    }
    return ans;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…