| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1368866 | mariza | Unscrambling a Messy Bug (IOI16_messy) | C++20 | 1 ms | 344 KiB |
#include "messy.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<int> restore_permutation(int n, int w, int r) {
string s;
for(ll i=0; i<n; i++) s+='0';
for(ll i=0; i<n; i++){
s[i]='1';
add_element(s);
}
compile_set();
s="";
for(ll i=0; i<n; i++) s+='0';
vector<int> p(n);
for(ll i=0; i<n; i++){
for(ll j=0; j<n; j++){
if(s[j]=='1') continue;
s[j]='1';
if(check_element(s)){
p[j]=i;
break;
}
else s[j]='0';
}
}
return p;
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
