| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1004926 | Mr_Husanboy | Unscrambling a Messy Bug (IOI16_messy) | C++17 | 1 ms | 604 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <vector>
#include<bits/stdc++.h>
using namespace std;
#include "messy.h"
vector<int> restore_permutation(int n, int w, int r) {
for(int i = 0; i < n; i ++){
string s(n, '1');
for(int j = 0; j <= i; j ++) s[j] = '0';
add_element(s);
}
compile_set();
vector<int> p(n, -1);
for(int j = 0; j < n; j ++){
string s(n, '1');
vector<int> done(n);
for(int i = 0; i < n; i ++){
if(~p[i]) s[i] = '0', done[i] = 1;
}
for(int i = 0; i < n; i ++){
if(done[i]) continue;
s[i] = '0';
if(check_element(s)){
//cout << i << ' ' << j << endl;
p[i] = j;
break;
}
s[i] = '1';
}
}
return p;
};
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
