답안 #869394

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
869394 2023-11-04T09:06:42 Z irmuun Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
80 ms 1788 KB
#include<bits/stdc++.h>
#include "ancient2.h"

using namespace std;
 
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
#define rall(s) s.rbegin(),s.rend()

string Solve(int n){
    vector<int>a={1,1,2},b={2,1,2};
    string ans="";
    int m=3;
    for(int i=0;i<n;i++){
        int q=Query(m,a,b);
        if(q==i+1){
            ans+='0';
        }
        else{
            ans+='1';
        }
        a.insert(a.begin(),0);
        b.insert(b.begin(),0);
        for(auto &x:a){
            x++;
        }
        for(auto &x:b){
            x++;
        }
        m++;
    }
    return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 69 ms 760 KB Output is partially correct
2 Partially correct 68 ms 944 KB Output is partially correct
3 Partially correct 68 ms 1116 KB Output is partially correct
4 Partially correct 70 ms 1160 KB Output is partially correct
5 Partially correct 68 ms 1112 KB Output is partially correct
6 Partially correct 68 ms 960 KB Output is partially correct
7 Partially correct 68 ms 1188 KB Output is partially correct
8 Partially correct 68 ms 844 KB Output is partially correct
9 Partially correct 70 ms 1164 KB Output is partially correct
10 Partially correct 67 ms 516 KB Output is partially correct
11 Partially correct 70 ms 756 KB Output is partially correct
12 Partially correct 72 ms 1080 KB Output is partially correct
13 Partially correct 69 ms 1360 KB Output is partially correct
14 Partially correct 67 ms 1180 KB Output is partially correct
15 Partially correct 72 ms 1292 KB Output is partially correct
16 Partially correct 67 ms 764 KB Output is partially correct
17 Partially correct 70 ms 1096 KB Output is partially correct
18 Partially correct 67 ms 1168 KB Output is partially correct
19 Partially correct 71 ms 1160 KB Output is partially correct
20 Partially correct 67 ms 1264 KB Output is partially correct
21 Partially correct 73 ms 1156 KB Output is partially correct
22 Partially correct 68 ms 1000 KB Output is partially correct
23 Partially correct 73 ms 1324 KB Output is partially correct
24 Partially correct 67 ms 1012 KB Output is partially correct
25 Partially correct 69 ms 1516 KB Output is partially correct
26 Partially correct 73 ms 828 KB Output is partially correct
27 Partially correct 70 ms 948 KB Output is partially correct
28 Partially correct 79 ms 1176 KB Output is partially correct
29 Partially correct 73 ms 960 KB Output is partially correct
30 Partially correct 67 ms 984 KB Output is partially correct
31 Partially correct 70 ms 1380 KB Output is partially correct
32 Partially correct 69 ms 1136 KB Output is partially correct
33 Partially correct 74 ms 1568 KB Output is partially correct
34 Partially correct 72 ms 1000 KB Output is partially correct
35 Partially correct 69 ms 1236 KB Output is partially correct
36 Partially correct 70 ms 1384 KB Output is partially correct
37 Partially correct 68 ms 1000 KB Output is partially correct
38 Partially correct 67 ms 968 KB Output is partially correct
39 Partially correct 67 ms 692 KB Output is partially correct
40 Partially correct 67 ms 764 KB Output is partially correct
41 Partially correct 74 ms 1140 KB Output is partially correct
42 Partially correct 70 ms 912 KB Output is partially correct
43 Partially correct 68 ms 1256 KB Output is partially correct
44 Partially correct 67 ms 904 KB Output is partially correct
45 Partially correct 71 ms 884 KB Output is partially correct
46 Partially correct 68 ms 1132 KB Output is partially correct
47 Partially correct 72 ms 1320 KB Output is partially correct
48 Partially correct 67 ms 1156 KB Output is partially correct
49 Partially correct 70 ms 1156 KB Output is partially correct
50 Partially correct 71 ms 868 KB Output is partially correct
51 Partially correct 74 ms 1288 KB Output is partially correct
52 Partially correct 69 ms 1160 KB Output is partially correct
53 Partially correct 69 ms 1208 KB Output is partially correct
54 Partially correct 80 ms 1336 KB Output is partially correct
55 Partially correct 70 ms 1024 KB Output is partially correct
56 Partially correct 67 ms 1156 KB Output is partially correct
57 Partially correct 70 ms 920 KB Output is partially correct
58 Partially correct 67 ms 940 KB Output is partially correct
59 Partially correct 71 ms 1500 KB Output is partially correct
60 Partially correct 69 ms 1076 KB Output is partially correct
61 Partially correct 68 ms 1228 KB Output is partially correct
62 Partially correct 71 ms 1788 KB Output is partially correct
63 Partially correct 70 ms 1244 KB Output is partially correct