Submission #401275

# Submission time Handle Problem Language Result Execution time Memory
401275 2021-05-09T18:06:39 Z victoriad Martian DNA (IOI16_dna) C++14
0 / 100
4 ms 2892 KB
#include "dna.h"
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <utility>
#include <queue>
#include <map>
#include <iomanip>
#include <fstream>
#include <cstdlib>
using namespace std;

void b(int n,string&g,int in){
  if(in==n){
  for(int i=0;i<n;i++)cout<<g[i];
  if(!make_test(g))
  return;
  }
 g[in]='0';
 b(n,g,in+1);
 g[in]='1';
 b(n,g,in+1);

 }             

std::string analyse(int n, int t) {
    string g;
    b(n,g,0);
    return g;
}

   
    
                       

Compilation message

grader.cpp: In function 'bool make_test(std::string)':
grader.cpp:14:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   14 |  for (int i = 0; i < p.size(); i++) {
      |                  ~~^~~~~~~~~~
grader.cpp:23:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   23 |  for (int i = 1; i <= ss.size(); i++) {
      |                  ~~^~~~~~~~~~~~
grader.cpp:28:13: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |   if (pr[i] == p.size()) {
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 844 KB Execution killed with signal 11
2 Runtime error 3 ms 2148 KB Execution killed with signal 11
3 Runtime error 3 ms 2700 KB Execution killed with signal 11
4 Runtime error 1 ms 844 KB Execution killed with signal 11
5 Runtime error 3 ms 2500 KB Execution killed with signal 11
6 Runtime error 3 ms 2380 KB Execution killed with signal 11
7 Runtime error 1 ms 676 KB Execution killed with signal 11
8 Runtime error 1 ms 716 KB Execution killed with signal 11
9 Runtime error 2 ms 1060 KB Execution killed with signal 11
10 Runtime error 2 ms 1484 KB Execution killed with signal 11
11 Runtime error 2 ms 1704 KB Execution killed with signal 11
12 Runtime error 1 ms 592 KB Execution killed with signal 11
13 Runtime error 3 ms 2508 KB Execution killed with signal 11
14 Runtime error 3 ms 2508 KB Execution killed with signal 11
15 Runtime error 1 ms 676 KB Execution killed with signal 11
16 Runtime error 4 ms 2764 KB Execution killed with signal 11
17 Runtime error 2 ms 1372 KB Execution killed with signal 11
18 Runtime error 3 ms 2604 KB Execution killed with signal 11
19 Runtime error 2 ms 2252 KB Execution killed with signal 11
20 Runtime error 2 ms 2124 KB Execution killed with signal 11
21 Runtime error 1 ms 844 KB Execution killed with signal 11
22 Runtime error 3 ms 2380 KB Execution killed with signal 11
23 Runtime error 2 ms 1484 KB Execution killed with signal 11
24 Runtime error 3 ms 2860 KB Execution killed with signal 11
# Verdict Execution time Memory Grader output
1 Runtime error 3 ms 2764 KB Execution killed with signal 11
2 Runtime error 1 ms 588 KB Execution killed with signal 11
3 Runtime error 1 ms 588 KB Execution killed with signal 11
4 Runtime error 3 ms 2216 KB Execution killed with signal 11
5 Runtime error 2 ms 1740 KB Execution killed with signal 11
6 Runtime error 2 ms 2000 KB Execution killed with signal 11
7 Runtime error 2 ms 1996 KB Execution killed with signal 11
8 Runtime error 2 ms 1612 KB Execution killed with signal 11
9 Runtime error 2 ms 1060 KB Execution killed with signal 11
10 Runtime error 2 ms 1100 KB Execution killed with signal 11
11 Runtime error 2 ms 1740 KB Execution killed with signal 11
12 Runtime error 1 ms 716 KB Execution killed with signal 11
13 Runtime error 2 ms 1740 KB Execution killed with signal 11
14 Runtime error 2 ms 1484 KB Execution killed with signal 11
15 Runtime error 2 ms 2124 KB Execution killed with signal 11
16 Runtime error 2 ms 1868 KB Execution killed with signal 11
17 Runtime error 2 ms 1612 KB Execution killed with signal 11
18 Runtime error 4 ms 2636 KB Execution killed with signal 11
19 Runtime error 3 ms 2764 KB Execution killed with signal 11
20 Runtime error 1 ms 588 KB Execution killed with signal 11
21 Runtime error 2 ms 1484 KB Execution killed with signal 11
22 Runtime error 2 ms 1228 KB Execution killed with signal 11
23 Runtime error 2 ms 1100 KB Execution killed with signal 11
24 Runtime error 3 ms 2764 KB Execution killed with signal 11
25 Runtime error 2 ms 1356 KB Execution killed with signal 11
26 Runtime error 1 ms 588 KB Execution killed with signal 11
27 Runtime error 2 ms 1612 KB Execution killed with signal 11
28 Runtime error 1 ms 972 KB Execution killed with signal 11
29 Runtime error 1 ms 692 KB Execution killed with signal 11
30 Runtime error 1 ms 588 KB Execution killed with signal 11
31 Runtime error 1 ms 972 KB Execution killed with signal 11
32 Runtime error 1 ms 716 KB Execution killed with signal 11
33 Runtime error 3 ms 2508 KB Execution killed with signal 11
34 Runtime error 1 ms 716 KB Execution killed with signal 11
# Verdict Execution time Memory Grader output
1 Runtime error 2 ms 932 KB Execution killed with signal 11
2 Runtime error 2 ms 1740 KB Execution killed with signal 11
3 Runtime error 1 ms 588 KB Execution killed with signal 11
4 Runtime error 2 ms 1996 KB Execution killed with signal 11
5 Runtime error 2 ms 1872 KB Execution killed with signal 11
6 Runtime error 2 ms 1484 KB Execution killed with signal 11
7 Runtime error 1 ms 844 KB Execution killed with signal 11
8 Runtime error 2 ms 1704 KB Execution killed with signal 11
9 Runtime error 2 ms 1356 KB Execution killed with signal 11
10 Runtime error 2 ms 972 KB Execution killed with signal 11
11 Runtime error 1 ms 844 KB Execution killed with signal 11
12 Runtime error 2 ms 1104 KB Execution killed with signal 11
13 Runtime error 3 ms 2380 KB Execution killed with signal 11
14 Runtime error 3 ms 2636 KB Execution killed with signal 11
15 Runtime error 3 ms 2636 KB Execution killed with signal 11
16 Runtime error 2 ms 2124 KB Execution killed with signal 11
17 Runtime error 3 ms 2764 KB Execution killed with signal 11
18 Runtime error 2 ms 1356 KB Execution killed with signal 11
19 Runtime error 1 ms 932 KB Execution killed with signal 11
20 Runtime error 2 ms 1356 KB Execution killed with signal 11
21 Runtime error 2 ms 1100 KB Execution killed with signal 11
22 Runtime error 3 ms 2764 KB Execution killed with signal 11
23 Runtime error 1 ms 716 KB Execution killed with signal 11
24 Runtime error 2 ms 1228 KB Execution killed with signal 11
25 Runtime error 2 ms 1100 KB Execution killed with signal 11
26 Runtime error 3 ms 2764 KB Execution killed with signal 11
27 Runtime error 3 ms 2636 KB Execution killed with signal 11
28 Runtime error 2 ms 1100 KB Execution killed with signal 11
29 Runtime error 1 ms 716 KB Execution killed with signal 11
30 Runtime error 2 ms 1484 KB Execution killed with signal 11
31 Runtime error 2 ms 972 KB Execution killed with signal 11
32 Runtime error 3 ms 2892 KB Execution killed with signal 11
33 Runtime error 1 ms 716 KB Execution killed with signal 11
34 Runtime error 2 ms 1100 KB Execution killed with signal 11
35 Runtime error 2 ms 1996 KB Execution killed with signal 11
36 Runtime error 2 ms 1740 KB Execution killed with signal 11
37 Runtime error 2 ms 972 KB Execution killed with signal 11
38 Runtime error 3 ms 2252 KB Execution killed with signal 11
39 Runtime error 2 ms 2124 KB Execution killed with signal 11