제출 #217088

#제출 시각아이디문제언어결과실행 시간메모리
217088BlagojceUnscrambling a Messy Bug (IOI16_messy)C++11
0 / 100
5 ms384 KiB
#include <bits/stdc++.h>
#define fr(i, n, m) for(int i = (n); i < (m); i ++)
#define pb push_back
#define st first
#define nd second
#define pq priority_queue
#define all(x) begin(x), end(x)

using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> pii;
const ll inf = 1e9;
const ll mod = 1e9 + 7;
const ld eps = 1e-13;
const int mxN = 200000;
#include "messy.h"
/**	
void add_element(string s){
	
}
void compile_set(){
	
}
bool check_element(string s){
	
	return true;
}**/
vector<int> restore_permutation(int n, int w, int r){
	string s(n, '0');
	fr(i, 0, n){
		s[i] = '1';
		cout << s << endl;
		add_element(s);
	}
	compile_set();
	fr(i, 0, n) s[i] = '0';
	vector<int> p(n);
	
	fr(i, 0, n){
		string temp = s;
		fr(j, 0, n){
			if(s[j] == '1') continue;
			temp[j] = '1';
			bool c = check_element(temp);
			if(c == true){
				s = temp;
				p[j] = i;
				break;
			}
			temp[j] = '0';
		}
	}
	return p;
}/**
int main(){
	restore_permutation(8, 100, 100);
}**/


#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...