Submission #200458

# Submission time Handle Problem Language Result Execution time Memory
200458 2020-02-06T21:16:15 Z mohamedsobhi777 Martian DNA (IOI16_dna) C++14
0 / 100
14 ms 888 KB
#include "dna.h"

#include <bits/stdc++.h>

using namespace 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) ==n )
        {
            return s;
        }
    }
}

Compilation message

dna.cpp: In function 'std::__cxx11::string analyse(int, int)':
dna.cpp:21: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 256 KB Output is correct
2 Correct 5 ms 256 KB Output is correct
3 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
5 Runtime error 6 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
6 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
7 Runtime error 6 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
8 Runtime error 7 ms 636 KB Execution killed with signal 11 (could be triggered by violating memory limits)
9 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
10 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
11 Runtime error 5 ms 508 KB Execution killed with signal 11 (could be triggered by violating memory limits)
12 Runtime error 8 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
13 Runtime error 6 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
14 Runtime error 5 ms 380 KB Execution killed with signal 11 (could be triggered by violating memory limits)
15 Runtime error 5 ms 380 KB Execution killed with signal 11 (could be triggered by violating memory limits)
16 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
17 Runtime error 7 ms 632 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 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
21 Runtime error 8 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 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
# Verdict Execution time Memory Grader output
1 Correct 7 ms 376 KB Output is correct
2 Correct 5 ms 256 KB Output is correct
3 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
5 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
6 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
7 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
8 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
9 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
10 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
11 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
12 Runtime error 8 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
13 Runtime error 6 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
14 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
15 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
16 Runtime error 7 ms 636 KB Execution killed with signal 11 (could be triggered by violating memory limits)
17 Runtime error 5 ms 504 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 7 ms 760 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 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
22 Runtime error 7 ms 632 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 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
25 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
26 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
27 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
28 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
29 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
30 Runtime error 8 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
31 Runtime error 9 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
32 Runtime error 7 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 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
# Verdict Execution time Memory Grader output
1 Correct 5 ms 256 KB Output is correct
2 Correct 5 ms 256 KB Output is correct
3 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Runtime error 8 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
5 Runtime error 7 ms 628 KB Execution killed with signal 11 (could be triggered by violating memory limits)
6 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
7 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
8 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
9 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
10 Runtime error 6 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
11 Runtime error 8 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
12 Runtime error 8 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
13 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
14 Runtime error 6 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
15 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
16 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
17 Runtime error 7 ms 632 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 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
21 Runtime error 7 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
22 Runtime error 14 ms 760 KB Execution killed with signal 11 (could be triggered by violating memory limits)
23 Runtime error 11 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
24 Runtime error 11 ms 536 KB Execution killed with signal 11 (could be triggered by violating memory limits)
25 Runtime error 14 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
26 Runtime error 13 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
27 Runtime error 14 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
28 Runtime error 12 ms 760 KB Execution killed with signal 11 (could be triggered by violating memory limits)
29 Runtime error 14 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
30 Runtime error 10 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
31 Runtime error 13 ms 632 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 13 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
34 Runtime error 12 ms 632 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 10 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
37 Runtime error 12 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
38 Runtime error 13 ms 888 KB Execution killed with signal 11 (could be triggered by violating memory limits)
39 Runtime error 12 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)