| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1332788 | SmuggingSpun | Martian DNA (IOI16_dna) | C++20 | 6 ms | 468 KiB |
#include "dna.h"
#include<bits/stdc++.h>
using namespace std;
string analyse(int n, int t){
string ans = "0";
for(int i = 1; i < n; i++){
ans += '0';
if(!make_test(ans)){
ans.back() = '1';
}
}
int low = 1, high = n, p = 0;
while(low <= high){
int mid = (low + high) >> 1;
if(make_test(ans.substr(0, mid))){
low = (p = mid) + 1;
}
else{
high = mid - 1;
}
}
return string(n - p, '1') + ans.substr(0, p);
} | # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
