답안 #34484

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
34484 2017-11-11T17:52:10 Z top34051 Martian DNA (IOI16_dna) C++14
0 / 100
16 ms 2016 KB
#include "dna.h"
#include <bits/stdc++.h>
using namespace std;

string s;

bool ask() {
    return make_test(s);
}

string analyse(int n, int t) {
    while(1) {
        s = s + '0';
        if(!ask()) s[s.size()-1] = '1';
        if(!ask()) break;
    }
    while(1) {
        s = '0' + s;
        if(!ask()) s[0] = '1';
        if(!ask()) break;
    }
    return s;
}

Compilation message

grader.cpp: In function 'bool make_test(std::__cxx11::string)':
grader.cpp:14:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 0; i < p.size(); i++) {
                    ^
grader.cpp:23:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i = 1; i <= ss.size(); i++) {
                    ^
grader.cpp:28:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (pr[i] == p.size()) {
             ^
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 2016 KB Wrong DNA
2 Incorrect 0 ms 2016 KB Wrong DNA
3 Incorrect 0 ms 2016 KB Wrong DNA
4 Incorrect 0 ms 2016 KB Wrong DNA
5 Incorrect 0 ms 2016 KB Wrong DNA
6 Incorrect 0 ms 2016 KB Wrong DNA
7 Incorrect 0 ms 2016 KB Wrong DNA
8 Incorrect 0 ms 2016 KB Wrong DNA
9 Incorrect 0 ms 2016 KB Wrong DNA
10 Incorrect 0 ms 2016 KB Wrong DNA
11 Incorrect 0 ms 2016 KB Wrong DNA
12 Incorrect 0 ms 2016 KB Wrong DNA
13 Incorrect 0 ms 2016 KB Wrong DNA
14 Incorrect 0 ms 2016 KB Wrong DNA
15 Incorrect 0 ms 2016 KB Wrong DNA
16 Incorrect 0 ms 2016 KB Wrong DNA
17 Incorrect 0 ms 2016 KB Wrong DNA
18 Incorrect 0 ms 2016 KB Wrong DNA
19 Incorrect 0 ms 2016 KB Wrong DNA
20 Incorrect 0 ms 2016 KB Wrong DNA
21 Incorrect 0 ms 2016 KB Wrong DNA
22 Incorrect 0 ms 2016 KB Wrong DNA
23 Incorrect 0 ms 2016 KB Wrong DNA
24 Incorrect 0 ms 2016 KB Wrong DNA
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 2016 KB Wrong DNA
2 Incorrect 0 ms 2016 KB Wrong DNA
3 Incorrect 0 ms 2016 KB Wrong DNA
4 Incorrect 0 ms 2016 KB Wrong DNA
5 Incorrect 0 ms 2016 KB Wrong DNA
6 Incorrect 0 ms 2016 KB Wrong DNA
7 Incorrect 0 ms 2016 KB Wrong DNA
8 Incorrect 0 ms 2016 KB Wrong DNA
9 Incorrect 0 ms 2016 KB Wrong DNA
10 Incorrect 0 ms 2016 KB Wrong DNA
11 Incorrect 0 ms 2016 KB Wrong DNA
12 Incorrect 0 ms 2016 KB Wrong DNA
13 Incorrect 0 ms 2016 KB Wrong DNA
14 Incorrect 0 ms 2016 KB Wrong DNA
15 Incorrect 0 ms 2016 KB Wrong DNA
16 Incorrect 0 ms 2016 KB Wrong DNA
17 Incorrect 0 ms 2016 KB Wrong DNA
18 Incorrect 0 ms 2016 KB Wrong DNA
19 Incorrect 0 ms 2016 KB Wrong DNA
20 Incorrect 0 ms 2016 KB Wrong DNA
21 Incorrect 0 ms 2016 KB Wrong DNA
22 Incorrect 0 ms 2016 KB Wrong DNA
23 Incorrect 0 ms 2016 KB Wrong DNA
24 Incorrect 0 ms 2016 KB Wrong DNA
25 Incorrect 0 ms 2016 KB Wrong DNA
26 Incorrect 0 ms 2016 KB Wrong DNA
27 Incorrect 0 ms 2016 KB Wrong DNA
28 Incorrect 0 ms 2016 KB Wrong DNA
29 Incorrect 0 ms 2016 KB Wrong DNA
30 Incorrect 0 ms 2016 KB Wrong DNA
31 Incorrect 0 ms 2016 KB Wrong DNA
32 Incorrect 0 ms 2016 KB Wrong DNA
33 Incorrect 0 ms 2016 KB Wrong DNA
34 Incorrect 0 ms 2016 KB Wrong DNA
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 2016 KB Wrong DNA
2 Incorrect 0 ms 2016 KB Wrong DNA
3 Incorrect 0 ms 2016 KB Wrong DNA
4 Incorrect 0 ms 2016 KB Wrong DNA
5 Incorrect 0 ms 2016 KB Wrong DNA
6 Incorrect 0 ms 2016 KB Wrong DNA
7 Incorrect 0 ms 2016 KB Wrong DNA
8 Incorrect 0 ms 2016 KB Wrong DNA
9 Incorrect 0 ms 2016 KB Wrong DNA
10 Incorrect 0 ms 2016 KB Wrong DNA
11 Incorrect 0 ms 2016 KB Wrong DNA
12 Incorrect 0 ms 2016 KB Wrong DNA
13 Incorrect 0 ms 2016 KB Wrong DNA
14 Incorrect 0 ms 2016 KB Wrong DNA
15 Incorrect 0 ms 2016 KB Wrong DNA
16 Incorrect 0 ms 2016 KB Wrong DNA
17 Incorrect 0 ms 2016 KB Wrong DNA
18 Incorrect 0 ms 2016 KB Wrong DNA
19 Incorrect 0 ms 2016 KB Wrong DNA
20 Incorrect 0 ms 2016 KB Wrong DNA
21 Incorrect 0 ms 2016 KB Wrong DNA
22 Incorrect 9 ms 2016 KB Wrong DNA
23 Incorrect 3 ms 2016 KB Wrong DNA
24 Incorrect 0 ms 2016 KB Wrong DNA
25 Incorrect 0 ms 2016 KB Wrong DNA
26 Incorrect 3 ms 2016 KB Wrong DNA
27 Incorrect 9 ms 2016 KB Wrong DNA
28 Incorrect 9 ms 2016 KB Wrong DNA
29 Incorrect 9 ms 2016 KB Wrong DNA
30 Incorrect 13 ms 2016 KB Wrong DNA
31 Incorrect 16 ms 2016 KB Wrong DNA
32 Incorrect 13 ms 2016 KB Wrong DNA
33 Incorrect 6 ms 2016 KB Wrong DNA
34 Incorrect 3 ms 2016 KB Wrong DNA
35 Incorrect 9 ms 2016 KB Wrong DNA
36 Incorrect 0 ms 2016 KB Wrong DNA
37 Incorrect 0 ms 2016 KB Wrong DNA
38 Incorrect 13 ms 2016 KB Wrong DNA
39 Incorrect 6 ms 2016 KB Wrong DNA