제출 #1108266

#제출 시각아이디문제언어결과실행 시간메모리
1108266akzytrUnscrambling a Messy Bug (IOI16_messy)C++17
20 / 100
1 ms508 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define ar array #define ve vector #define sz(a) ((int)(a).size()) void add_element(std::string x); bool check_element(std::string x); void compile_set(); ve<int> restore_permutation(int n, int w, int r) { ve<int> p(n); string x = ""; for(int i = 0; i < n; i++) { x += '0'; } for(int i = 0; i < n; i++) { x[i] = '1'; add_element(x); } compile_set(); x = ""; for(int i = 0; i < n; i++) { x += '0'; } for(int i = 0; i < n; i++) { for(int j = 0; j < n; j++) { if(x[j] != '1') { x[j] = '1'; if(check_element(x)) { p[i] = j; break; } x[j] = '0'; } } } return p; }
#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...