답안 #965094

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
965094 2024-04-18T06:22:29 Z Pring Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
96 ms 1748 KB
#include <bits/stdc++.h>
#include "ancient2.h"
using namespace std;

#ifdef MIKU
string dbmc = "\033[1;38;2;57;197;187m", dbrs = "\033[0m";
#define debug(x...) cout << dbmc << "[" << #x << "]: ", dout(x)
void dout() { cout << dbrs << endl; }
template <typename T, typename ...U>
void dout(T t, U ...u) { cout << t << (sizeof...(u) ? ", " : ""); dout(u...); }
#else
#define debug(...) 39
#endif

#define fs first
#define sc second
#define mp make_pair
#define FOR(i, j, k) for (int i = j, Z = k; i < Z; i++)
using ll = long long;
typedef pair<int, int> pii;

namespace {

    string miku(int n) {
        string s = "";
        FOR(i, 0, n) {
            int m = i + 3;
            vector<int> a(m), b(m);
            FOR(j, 0, m) {
                a[j] = j;
                b[j] = j;
            }
            FOR(j, 0, i) {
                a[j]++;
                b[j]++;
            }
            a[i] = i + 1;
            b[i] = i + 2;
            int x = Query(m, a, b);
            if (x == i + 1) s.push_back('0');
            else s.push_back('1');
        }
        return s;
    }
}

string Solve(int n) {
    return miku(n);
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 76 ms 1384 KB Output is partially correct
2 Partially correct 76 ms 1416 KB Output is partially correct
3 Partially correct 81 ms 1644 KB Output is partially correct
4 Partially correct 72 ms 1016 KB Output is partially correct
5 Partially correct 80 ms 968 KB Output is partially correct
6 Partially correct 77 ms 1300 KB Output is partially correct
7 Partially correct 77 ms 1012 KB Output is partially correct
8 Partially correct 77 ms 1144 KB Output is partially correct
9 Partially correct 75 ms 1736 KB Output is partially correct
10 Partially correct 75 ms 1288 KB Output is partially correct
11 Partially correct 76 ms 1216 KB Output is partially correct
12 Partially correct 77 ms 1480 KB Output is partially correct
13 Partially correct 76 ms 1408 KB Output is partially correct
14 Partially correct 87 ms 1424 KB Output is partially correct
15 Partially correct 86 ms 1304 KB Output is partially correct
16 Partially correct 78 ms 1316 KB Output is partially correct
17 Partially correct 78 ms 1516 KB Output is partially correct
18 Partially correct 80 ms 1328 KB Output is partially correct
19 Partially correct 84 ms 1144 KB Output is partially correct
20 Partially correct 78 ms 1132 KB Output is partially correct
21 Partially correct 78 ms 1288 KB Output is partially correct
22 Partially correct 82 ms 956 KB Output is partially correct
23 Partially correct 79 ms 984 KB Output is partially correct
24 Partially correct 75 ms 1552 KB Output is partially correct
25 Partially correct 77 ms 1212 KB Output is partially correct
26 Partially correct 81 ms 1312 KB Output is partially correct
27 Partially correct 81 ms 1400 KB Output is partially correct
28 Partially correct 82 ms 1236 KB Output is partially correct
29 Partially correct 82 ms 1508 KB Output is partially correct
30 Partially correct 76 ms 1336 KB Output is partially correct
31 Partially correct 79 ms 1620 KB Output is partially correct
32 Partially correct 78 ms 1288 KB Output is partially correct
33 Partially correct 74 ms 1668 KB Output is partially correct
34 Partially correct 96 ms 1476 KB Output is partially correct
35 Partially correct 72 ms 1748 KB Output is partially correct
36 Partially correct 84 ms 812 KB Output is partially correct
37 Partially correct 81 ms 1184 KB Output is partially correct
38 Partially correct 73 ms 1380 KB Output is partially correct
39 Partially correct 79 ms 1216 KB Output is partially correct
40 Partially correct 76 ms 1428 KB Output is partially correct
41 Partially correct 70 ms 1128 KB Output is partially correct
42 Partially correct 72 ms 1252 KB Output is partially correct
43 Partially correct 82 ms 1324 KB Output is partially correct
44 Partially correct 79 ms 1192 KB Output is partially correct
45 Partially correct 75 ms 1060 KB Output is partially correct
46 Partially correct 75 ms 1544 KB Output is partially correct
47 Partially correct 75 ms 1284 KB Output is partially correct
48 Partially correct 74 ms 1064 KB Output is partially correct
49 Partially correct 75 ms 1636 KB Output is partially correct
50 Partially correct 76 ms 1180 KB Output is partially correct
51 Partially correct 79 ms 1472 KB Output is partially correct
52 Partially correct 74 ms 1296 KB Output is partially correct
53 Partially correct 74 ms 1316 KB Output is partially correct
54 Partially correct 78 ms 1240 KB Output is partially correct
55 Partially correct 73 ms 1544 KB Output is partially correct
56 Partially correct 79 ms 1224 KB Output is partially correct
57 Partially correct 75 ms 1224 KB Output is partially correct
58 Partially correct 88 ms 1316 KB Output is partially correct
59 Partially correct 78 ms 1532 KB Output is partially correct
60 Partially correct 81 ms 1684 KB Output is partially correct
61 Partially correct 73 ms 984 KB Output is partially correct
62 Partially correct 78 ms 1568 KB Output is partially correct
63 Partially correct 78 ms 1140 KB Output is partially correct