Submission #821282

# Submission time Handle Problem Language Result Execution time Memory
821282 2023-08-11T08:40:08 Z enerelt14 Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
199 ms 428 KB
#include "ancient2.h"
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <chrono>
#include <climits>
#include <cmath>
#include <complex>
#include <cstring>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <set>
#include <vector>
using namespace std;

string Solve(int N) {
    string s(1000, '0');
    int m = 1002;
    vector<int> a(m, 0), b(m, 0);
    for(int i = 0; i < 1000; i++) {
        a[i] = i + 2;
        b[i] = i + 1;
        a[i + 1] = i + 1;
        b[i + 1] = i + 1;
        a[i + 2] = i + 2;
        b[i + 2] = i + 2;
        if(Query(m, a, b) == i + 1) s[i] = '1';
        a[i] = i + 1;
    }
    return s;
}
# Verdict Execution time Memory Grader output
1 Partially correct 152 ms 312 KB Output is partially correct
2 Partially correct 153 ms 316 KB Output is partially correct
3 Partially correct 198 ms 312 KB Output is partially correct
4 Partially correct 144 ms 316 KB Output is partially correct
5 Partially correct 159 ms 416 KB Output is partially correct
6 Partially correct 164 ms 316 KB Output is partially correct
7 Partially correct 176 ms 312 KB Output is partially correct
8 Partially correct 154 ms 316 KB Output is partially correct
9 Partially correct 165 ms 292 KB Output is partially correct
10 Partially correct 155 ms 360 KB Output is partially correct
11 Partially correct 168 ms 316 KB Output is partially correct
12 Partially correct 168 ms 296 KB Output is partially correct
13 Partially correct 159 ms 416 KB Output is partially correct
14 Partially correct 132 ms 316 KB Output is partially correct
15 Partially correct 182 ms 312 KB Output is partially correct
16 Partially correct 155 ms 316 KB Output is partially correct
17 Partially correct 147 ms 316 KB Output is partially correct
18 Partially correct 134 ms 300 KB Output is partially correct
19 Partially correct 172 ms 312 KB Output is partially correct
20 Partially correct 153 ms 312 KB Output is partially correct
21 Partially correct 153 ms 312 KB Output is partially correct
22 Partially correct 184 ms 312 KB Output is partially correct
23 Partially correct 199 ms 316 KB Output is partially correct
24 Partially correct 183 ms 312 KB Output is partially correct
25 Partially correct 137 ms 312 KB Output is partially correct
26 Partially correct 141 ms 312 KB Output is partially correct
27 Partially correct 164 ms 328 KB Output is partially correct
28 Partially correct 156 ms 336 KB Output is partially correct
29 Partially correct 150 ms 408 KB Output is partially correct
30 Partially correct 138 ms 312 KB Output is partially correct
31 Partially correct 152 ms 304 KB Output is partially correct
32 Partially correct 177 ms 336 KB Output is partially correct
33 Partially correct 135 ms 296 KB Output is partially correct
34 Partially correct 195 ms 320 KB Output is partially correct
35 Partially correct 169 ms 316 KB Output is partially correct
36 Partially correct 137 ms 312 KB Output is partially correct
37 Partially correct 179 ms 300 KB Output is partially correct
38 Partially correct 150 ms 424 KB Output is partially correct
39 Partially correct 141 ms 316 KB Output is partially correct
40 Partially correct 134 ms 312 KB Output is partially correct
41 Partially correct 145 ms 424 KB Output is partially correct
42 Partially correct 146 ms 428 KB Output is partially correct
43 Partially correct 175 ms 316 KB Output is partially correct
44 Partially correct 137 ms 296 KB Output is partially correct
45 Partially correct 144 ms 312 KB Output is partially correct
46 Partially correct 174 ms 368 KB Output is partially correct
47 Partially correct 154 ms 320 KB Output is partially correct
48 Partially correct 159 ms 312 KB Output is partially correct
49 Partially correct 134 ms 312 KB Output is partially correct
50 Partially correct 181 ms 312 KB Output is partially correct
51 Partially correct 132 ms 320 KB Output is partially correct
52 Partially correct 141 ms 320 KB Output is partially correct
53 Partially correct 135 ms 296 KB Output is partially correct
54 Partially correct 158 ms 320 KB Output is partially correct
55 Partially correct 149 ms 420 KB Output is partially correct
56 Partially correct 187 ms 300 KB Output is partially correct
57 Partially correct 139 ms 296 KB Output is partially correct
58 Partially correct 134 ms 316 KB Output is partially correct
59 Partially correct 167 ms 312 KB Output is partially correct
60 Partially correct 142 ms 320 KB Output is partially correct
61 Partially correct 170 ms 292 KB Output is partially correct
62 Partially correct 160 ms 316 KB Output is partially correct
63 Partially correct 146 ms 320 KB Output is partially correct