Submission #965119

# Submission time Handle Problem Language Result Execution time Memory
965119 2024-04-18T07:17:50 Z owoovo Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
86 ms 1788 KB
#include "ancient2.h"
#include<bits/stdc++.h>
using namespace std;

namespace {

int variable_example = 1;

}  // namespace

string Solve(int n) {
  string s(n, '0');
  vector<int> a, b;
  for(int i=0;i<n;i++){
    a.resize(i+3),b.resize(i+3);
    for(int j=0;j<i;j++){
      a[j]=j+1;
      b[j]=j+1;
    }
    a[i]=i+1;
    b[i]=i+2;
    for(int j=i+1;j<=i+2;j++)a[j]=j,b[j]=j;
    int u=Query(i+3,a,b);
    cerr<<u<<"\n";
    if(u==i+1){
      s[i]='0';
    }else{
      s[i]='1';
    }
  }
  cerr<<s<<"\n";
  return s;
}

Compilation message

ancient2.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    7 | int variable_example = 1;
      |     ^~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Partially correct 80 ms 1264 KB Output is partially correct
2 Partially correct 80 ms 1516 KB Output is partially correct
3 Partially correct 82 ms 1140 KB Output is partially correct
4 Partially correct 86 ms 1188 KB Output is partially correct
5 Partially correct 74 ms 1180 KB Output is partially correct
6 Partially correct 81 ms 1192 KB Output is partially correct
7 Partially correct 85 ms 1392 KB Output is partially correct
8 Partially correct 83 ms 1424 KB Output is partially correct
9 Partially correct 81 ms 1132 KB Output is partially correct
10 Partially correct 79 ms 1504 KB Output is partially correct
11 Partially correct 80 ms 836 KB Output is partially correct
12 Partially correct 83 ms 996 KB Output is partially correct
13 Partially correct 82 ms 1180 KB Output is partially correct
14 Partially correct 80 ms 1344 KB Output is partially correct
15 Partially correct 86 ms 1136 KB Output is partially correct
16 Partially correct 81 ms 1788 KB Output is partially correct
17 Partially correct 83 ms 1244 KB Output is partially correct
18 Partially correct 81 ms 812 KB Output is partially correct
19 Partially correct 79 ms 1232 KB Output is partially correct
20 Partially correct 84 ms 1444 KB Output is partially correct
21 Partially correct 76 ms 1184 KB Output is partially correct
22 Partially correct 81 ms 1460 KB Output is partially correct
23 Partially correct 79 ms 1536 KB Output is partially correct
24 Partially correct 78 ms 1256 KB Output is partially correct
25 Partially correct 83 ms 1076 KB Output is partially correct
26 Partially correct 80 ms 1348 KB Output is partially correct
27 Partially correct 78 ms 988 KB Output is partially correct
28 Partially correct 80 ms 1392 KB Output is partially correct
29 Partially correct 83 ms 1584 KB Output is partially correct
30 Partially correct 84 ms 1248 KB Output is partially correct
31 Partially correct 84 ms 1384 KB Output is partially correct
32 Partially correct 85 ms 1108 KB Output is partially correct
33 Partially correct 79 ms 1332 KB Output is partially correct
34 Partially correct 78 ms 1404 KB Output is partially correct
35 Partially correct 81 ms 1060 KB Output is partially correct
36 Partially correct 78 ms 1032 KB Output is partially correct
37 Partially correct 82 ms 1596 KB Output is partially correct
38 Partially correct 81 ms 1068 KB Output is partially correct
39 Partially correct 81 ms 1244 KB Output is partially correct
40 Partially correct 84 ms 1360 KB Output is partially correct
41 Partially correct 76 ms 1308 KB Output is partially correct
42 Partially correct 78 ms 1688 KB Output is partially correct
43 Partially correct 84 ms 1236 KB Output is partially correct
44 Partially correct 80 ms 1156 KB Output is partially correct
45 Partially correct 86 ms 1372 KB Output is partially correct
46 Partially correct 76 ms 1056 KB Output is partially correct
47 Partially correct 77 ms 1244 KB Output is partially correct
48 Partially correct 81 ms 1020 KB Output is partially correct
49 Partially correct 86 ms 1436 KB Output is partially correct
50 Partially correct 83 ms 1432 KB Output is partially correct
51 Partially correct 82 ms 1104 KB Output is partially correct
52 Partially correct 80 ms 1672 KB Output is partially correct
53 Partially correct 79 ms 1108 KB Output is partially correct
54 Partially correct 80 ms 912 KB Output is partially correct
55 Partially correct 75 ms 1264 KB Output is partially correct
56 Partially correct 79 ms 1200 KB Output is partially correct
57 Partially correct 83 ms 1292 KB Output is partially correct
58 Partially correct 82 ms 1200 KB Output is partially correct
59 Partially correct 81 ms 1404 KB Output is partially correct
60 Partially correct 76 ms 1008 KB Output is partially correct
61 Partially correct 81 ms 1152 KB Output is partially correct
62 Partially correct 78 ms 1216 KB Output is partially correct
63 Partially correct 80 ms 1012 KB Output is partially correct