# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1224621 | maya_s | Unscrambling a Messy Bug (IOI16_messy) | C++20 | 0 ms | 328 KiB |
#include <bits/stdc++.h>
#include "messy.h"
using namespace std;
typedef int ll;
vector<int> restore_permutation(int n, int w, int r) {
string s = "";
for(ll i = 0; i < n; i++) s.push_back('0');
for(ll i = 0; i < n; i++){
s[i] = '1';
add_element(s);
}
compile_set();
for(ll i = 0; i < n; i++) s[i] = '0';
vector<ll> p(n);
for(ll i = 0; i < n; i++){
for(ll j = 0; j < n; j++) if(s[j] != '1') {
s[j] = '1';
if(check_element(s)) {
// cout << s << "\n";
p[j] = i; break;
}
s[j] = '0';
}
}
return p;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |