# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
59282 | TadijaSebez | Martian DNA (IOI16_dna) | C++11 | 19 ms | 1480 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "dna.h"
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <string>
#include <ctime>
using namespace std;
string sol;
int qu;
bool Check(string s){ return make_test(s);}//qu++;return sol.find(s)!=string::npos;}
string analyse(int n, int t)
{
string tmp="";
int cnt=0;
while(cnt<10)
{
char s='0'+(rand()&1);
//cout << s << "\n";
if(Check(tmp+s))
{
tmp+=s;
cnt=0;
}
else
{
//printf(":D\n");
cnt++;
tmp+=('0'+((s-'0')^1));
//cout << tmp << "\n";
}
//printf("WORK\n");
}
//cout << tmp << "\n";
//exit(0);
for(int i=0;i<10;i++)
{
if(Check(tmp)) break;
tmp=tmp.substr(0,tmp.size()-1);
}
while(tmp.size()<n)
{
tmp='0'+tmp;
if(!Check(tmp)) tmp[0]='1';
}
//cout << tmp << "\n";
return tmp;
}
컴파일 시 표준 에러 (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... |