Submission #965321

# Submission time Handle Problem Language Result Execution time Memory
965321 2024-04-18T10:30:54 Z phoenix0423 Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
156 ms 1636 KB
#include<bits/stdc++.h>
#include "ancient2.h"
using namespace std;
typedef long long ll;
typedef pair<int, int> pll;
#define fastio ios::sync_with_stdio(false), cin.tie(0)
#pragma GCC optimize("Ofast")
#define pb push_back
#define eb emplace_back
#define f first
#define s second
// #define int long long
#define lowbit(x) x&-x
const int maxn = 2e5 + 5;

string Solve(int n){
    string ans;
    for(int i = 0; i < n; i++){
        vector<int> a(1002), b(1002);
        for(int j = 0; j < i; j++) a[j] = j + 1, b[j] = j + 1;
        a[i] = 1000, b[i] = 1001;
        a[1001] = 1001, b[1001] = 1001;
        a[1000] = 1000, b[1000] = 1000;
        int k = Query(1002, a, b);
        if(k == 1001) ans += '1';
        else ans += '0';
    }
    return ans;
}
# Verdict Execution time Memory Grader output
1 Partially correct 141 ms 1320 KB Output is partially correct
2 Partially correct 143 ms 1304 KB Output is partially correct
3 Partially correct 151 ms 1152 KB Output is partially correct
4 Partially correct 156 ms 904 KB Output is partially correct
5 Partially correct 144 ms 1068 KB Output is partially correct
6 Partially correct 143 ms 1168 KB Output is partially correct
7 Partially correct 139 ms 1424 KB Output is partially correct
8 Partially correct 142 ms 1280 KB Output is partially correct
9 Partially correct 136 ms 1372 KB Output is partially correct
10 Partially correct 146 ms 948 KB Output is partially correct
11 Partially correct 138 ms 1496 KB Output is partially correct
12 Partially correct 132 ms 1036 KB Output is partially correct
13 Partially correct 140 ms 1468 KB Output is partially correct
14 Partially correct 149 ms 1532 KB Output is partially correct
15 Partially correct 142 ms 1128 KB Output is partially correct
16 Partially correct 148 ms 1048 KB Output is partially correct
17 Partially correct 135 ms 1516 KB Output is partially correct
18 Partially correct 146 ms 1400 KB Output is partially correct
19 Partially correct 135 ms 888 KB Output is partially correct
20 Partially correct 138 ms 1364 KB Output is partially correct
21 Partially correct 142 ms 1028 KB Output is partially correct
22 Partially correct 151 ms 1544 KB Output is partially correct
23 Partially correct 131 ms 1124 KB Output is partially correct
24 Partially correct 138 ms 1148 KB Output is partially correct
25 Partially correct 135 ms 1488 KB Output is partially correct
26 Partially correct 132 ms 988 KB Output is partially correct
27 Partially correct 142 ms 1304 KB Output is partially correct
28 Partially correct 131 ms 1020 KB Output is partially correct
29 Partially correct 142 ms 928 KB Output is partially correct
30 Partially correct 140 ms 1276 KB Output is partially correct
31 Partially correct 139 ms 1128 KB Output is partially correct
32 Partially correct 130 ms 1084 KB Output is partially correct
33 Partially correct 138 ms 1440 KB Output is partially correct
34 Partially correct 138 ms 1420 KB Output is partially correct
35 Partially correct 146 ms 1288 KB Output is partially correct
36 Partially correct 144 ms 1304 KB Output is partially correct
37 Partially correct 136 ms 1232 KB Output is partially correct
38 Partially correct 136 ms 1144 KB Output is partially correct
39 Partially correct 135 ms 996 KB Output is partially correct
40 Partially correct 143 ms 1220 KB Output is partially correct
41 Partially correct 140 ms 1148 KB Output is partially correct
42 Partially correct 138 ms 1344 KB Output is partially correct
43 Partially correct 140 ms 1424 KB Output is partially correct
44 Partially correct 155 ms 1540 KB Output is partially correct
45 Partially correct 132 ms 968 KB Output is partially correct
46 Partially correct 148 ms 1104 KB Output is partially correct
47 Partially correct 143 ms 1124 KB Output is partially correct
48 Partially correct 138 ms 1268 KB Output is partially correct
49 Partially correct 137 ms 1176 KB Output is partially correct
50 Partially correct 131 ms 984 KB Output is partially correct
51 Partially correct 132 ms 844 KB Output is partially correct
52 Partially correct 129 ms 1332 KB Output is partially correct
53 Partially correct 132 ms 1452 KB Output is partially correct
54 Partially correct 131 ms 1104 KB Output is partially correct
55 Partially correct 130 ms 1188 KB Output is partially correct
56 Partially correct 134 ms 1068 KB Output is partially correct
57 Partially correct 129 ms 1008 KB Output is partially correct
58 Partially correct 131 ms 1072 KB Output is partially correct
59 Partially correct 129 ms 848 KB Output is partially correct
60 Partially correct 128 ms 1432 KB Output is partially correct
61 Partially correct 131 ms 1636 KB Output is partially correct
62 Partially correct 132 ms 1244 KB Output is partially correct
63 Partially correct 137 ms 1412 KB Output is partially correct