Submission #200460

# Submission time Handle Problem Language Result Execution time Memory
200460 2020-02-06T21:27:55 Z mohamedsobhi777 Martian DNA (IOI16_dna) C++14
0 / 100
13 ms 764 KB
#include "dna.h"

#include <bits/stdc++.h>

using namespace std;


std::string analyse(int n, int t) {
    string ret = "";
    for(int i = 0;i<(1<<n);i++)
    {
        string s="";
        for(int j = 0;j<n;j++)
        {
            s+=char(  !!(i&(1<<j)) + '0');
        }
        if( make_test(s) )
        {
            return s;
        }
    }
}

Compilation message

dna.cpp: In function 'std::__cxx11::string analyse(int, int)':
dna.cpp:22:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
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()) {
# Verdict Execution time Memory Grader output
1 Correct 5 ms 376 KB Output is correct
2 Correct 5 ms 376 KB Output is correct
3 Correct 5 ms 256 KB Output is correct
4 Correct 5 ms 256 KB Output is correct
5 Correct 5 ms 256 KB Output is correct
6 Correct 5 ms 256 KB Output is correct
7 Correct 5 ms 256 KB Output is correct
8 Correct 5 ms 256 KB Output is correct
9 Correct 5 ms 256 KB Output is correct
10 Correct 5 ms 376 KB Output is correct
11 Correct 4 ms 256 KB Output is correct
12 Correct 6 ms 376 KB Output is correct
13 Correct 5 ms 256 KB Output is correct
14 Correct 5 ms 256 KB Output is correct
15 Incorrect 5 ms 376 KB Too many tests
16 Correct 5 ms 256 KB Output is correct
17 Correct 5 ms 256 KB Output is correct
18 Correct 5 ms 256 KB Output is correct
19 Correct 5 ms 256 KB Output is correct
20 Correct 5 ms 256 KB Output is correct
21 Correct 5 ms 376 KB Output is correct
22 Correct 5 ms 376 KB Output is correct
23 Correct 5 ms 256 KB Output is correct
24 Correct 5 ms 256 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 5 ms 376 KB Output is correct
3 Correct 5 ms 256 KB Output is correct
4 Correct 5 ms 376 KB Output is correct
5 Correct 5 ms 256 KB Output is correct
6 Correct 5 ms 256 KB Output is correct
7 Correct 5 ms 376 KB Output is correct
8 Correct 5 ms 256 KB Output is correct
9 Correct 5 ms 256 KB Output is correct
10 Correct 5 ms 256 KB Output is correct
11 Correct 5 ms 256 KB Output is correct
12 Incorrect 5 ms 256 KB Too many tests
13 Incorrect 5 ms 256 KB Too many tests
14 Correct 5 ms 256 KB Output is correct
15 Correct 5 ms 376 KB Output is correct
16 Correct 5 ms 256 KB Output is correct
17 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
18 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
19 Runtime error 6 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
21 Runtime error 10 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
22 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
23 Runtime error 8 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
24 Correct 5 ms 256 KB Output is correct
25 Runtime error 8 ms 636 KB Execution killed with signal 11 (could be triggered by violating memory limits)
26 Runtime error 6 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
27 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
28 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
29 Runtime error 7 ms 760 KB Execution killed with signal 11 (could be triggered by violating memory limits)
30 Runtime error 7 ms 760 KB Execution killed with signal 11 (could be triggered by violating memory limits)
31 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
32 Runtime error 8 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
33 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
34 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
# Verdict Execution time Memory Grader output
1 Correct 6 ms 376 KB Output is correct
2 Correct 5 ms 376 KB Output is correct
3 Correct 5 ms 368 KB Output is correct
4 Correct 5 ms 256 KB Output is correct
5 Correct 6 ms 376 KB Output is correct
6 Correct 5 ms 376 KB Output is correct
7 Correct 5 ms 256 KB Output is correct
8 Correct 5 ms 256 KB Output is correct
9 Correct 5 ms 256 KB Output is correct
10 Correct 5 ms 256 KB Output is correct
11 Correct 5 ms 256 KB Output is correct
12 Correct 5 ms 256 KB Output is correct
13 Correct 6 ms 256 KB Output is correct
14 Correct 5 ms 376 KB Output is correct
15 Correct 5 ms 256 KB Output is correct
16 Correct 5 ms 376 KB Output is correct
17 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
18 Runtime error 6 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
19 Runtime error 8 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Runtime error 6 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
21 Runtime error 6 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
22 Runtime error 13 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
23 Runtime error 13 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
24 Runtime error 12 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
25 Runtime error 13 ms 636 KB Execution killed with signal 11 (could be triggered by violating memory limits)
26 Runtime error 11 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
27 Runtime error 10 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
28 Runtime error 11 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
29 Correct 5 ms 376 KB Output is correct
30 Runtime error 12 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
31 Runtime error 12 ms 764 KB Execution killed with signal 11 (could be triggered by violating memory limits)
32 Runtime error 10 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
33 Runtime error 10 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
34 Runtime error 12 ms 760 KB Execution killed with signal 11 (could be triggered by violating memory limits)
35 Runtime error 12 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
36 Runtime error 12 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
37 Runtime error 10 ms 556 KB Execution killed with signal 11 (could be triggered by violating memory limits)
38 Runtime error 10 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
39 Runtime error 10 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)