Submission #931937

# Submission time Handle Problem Language Result Execution time Memory
931937 2024-02-22T15:45:55 Z infrapolar Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
75 ms 1768 KB
#include <bits/stdc++.h>
#include "ancient2.h"
using namespace std;
std::string Solve(int N){
    vector<int> a(3), b(3);
    string result;
    result.resize(N);
    a[1] = b[1] = 1;
    a[2] = b[2] = 2;
    a[0] = 1;
    b[0] = 2;
    result[0] = Query(a.size(), a, b) - 1 + '0';
    for (int i = 1; i < N; i++)
    {
        a.push_back(i+2);
        b.push_back(i+2);
        a[i] = a.size()-2;
        b[i] = a.size()-1;
        a[i-1] = i;
        b[i-1] = i;
        result[i] = Query(a.size(), a, b) - 1 - i + '0';
    }
    return result;
    
}
# Verdict Execution time Memory Grader output
1 Partially correct 70 ms 1016 KB Output is partially correct
2 Partially correct 67 ms 1356 KB Output is partially correct
3 Partially correct 68 ms 1108 KB Output is partially correct
4 Partially correct 68 ms 956 KB Output is partially correct
5 Partially correct 68 ms 1260 KB Output is partially correct
6 Partially correct 67 ms 1004 KB Output is partially correct
7 Partially correct 68 ms 800 KB Output is partially correct
8 Partially correct 67 ms 1484 KB Output is partially correct
9 Partially correct 67 ms 752 KB Output is partially correct
10 Partially correct 68 ms 1016 KB Output is partially correct
11 Partially correct 69 ms 1000 KB Output is partially correct
12 Partially correct 69 ms 1108 KB Output is partially correct
13 Partially correct 69 ms 1652 KB Output is partially correct
14 Partially correct 68 ms 1200 KB Output is partially correct
15 Partially correct 71 ms 1308 KB Output is partially correct
16 Partially correct 67 ms 1220 KB Output is partially correct
17 Partially correct 68 ms 1364 KB Output is partially correct
18 Partially correct 70 ms 1480 KB Output is partially correct
19 Partially correct 68 ms 1012 KB Output is partially correct
20 Partially correct 68 ms 1084 KB Output is partially correct
21 Partially correct 68 ms 1448 KB Output is partially correct
22 Partially correct 68 ms 1768 KB Output is partially correct
23 Partially correct 68 ms 1188 KB Output is partially correct
24 Partially correct 68 ms 940 KB Output is partially correct
25 Partially correct 68 ms 1168 KB Output is partially correct
26 Partially correct 70 ms 1004 KB Output is partially correct
27 Partially correct 69 ms 1436 KB Output is partially correct
28 Partially correct 74 ms 1004 KB Output is partially correct
29 Partially correct 67 ms 1416 KB Output is partially correct
30 Partially correct 68 ms 1264 KB Output is partially correct
31 Partially correct 71 ms 1264 KB Output is partially correct
32 Partially correct 70 ms 1008 KB Output is partially correct
33 Partially correct 67 ms 1456 KB Output is partially correct
34 Partially correct 68 ms 856 KB Output is partially correct
35 Partially correct 71 ms 1056 KB Output is partially correct
36 Partially correct 68 ms 832 KB Output is partially correct
37 Partially correct 69 ms 992 KB Output is partially correct
38 Partially correct 67 ms 1204 KB Output is partially correct
39 Partially correct 68 ms 760 KB Output is partially correct
40 Partially correct 69 ms 984 KB Output is partially correct
41 Partially correct 70 ms 1092 KB Output is partially correct
42 Partially correct 67 ms 996 KB Output is partially correct
43 Partially correct 68 ms 972 KB Output is partially correct
44 Partially correct 67 ms 1184 KB Output is partially correct
45 Partially correct 69 ms 796 KB Output is partially correct
46 Partially correct 68 ms 1200 KB Output is partially correct
47 Partially correct 69 ms 1492 KB Output is partially correct
48 Partially correct 69 ms 1524 KB Output is partially correct
49 Partially correct 67 ms 1440 KB Output is partially correct
50 Partially correct 67 ms 1092 KB Output is partially correct
51 Partially correct 75 ms 1304 KB Output is partially correct
52 Partially correct 68 ms 1012 KB Output is partially correct
53 Partially correct 68 ms 1120 KB Output is partially correct
54 Partially correct 67 ms 760 KB Output is partially correct
55 Partially correct 69 ms 1144 KB Output is partially correct
56 Partially correct 67 ms 764 KB Output is partially correct
57 Partially correct 67 ms 900 KB Output is partially correct
58 Partially correct 68 ms 1412 KB Output is partially correct
59 Partially correct 67 ms 872 KB Output is partially correct
60 Partially correct 68 ms 1016 KB Output is partially correct
61 Partially correct 68 ms 764 KB Output is partially correct
62 Partially correct 69 ms 1236 KB Output is partially correct
63 Partially correct 68 ms 1316 KB Output is partially correct