답안 #899033

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
899033 2024-01-05T11:21:26 Z jamjanek Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
90 ms 1588 KB
#include "ancient2.h"
#include<bits/stdc++.h>
using namespace std;

bool prefix(int k){
	int m = k+1+2;
	vector<int>a(m), b(m);
	for(int i=0;i<k;i++){
		a[i] = i+1;
		b[i] = i+1;
	}
	a[k] = k+1;
	b[k] = k+2;
	a[k+2] = k+2;
	b[k+2] = k+2;
	a[k+1] = k+1;
	b[k+1] = k+1;
	return Query(m,a,b)==(k+2);
}

string Solve(int N) {
	string s;
	while((int)s.size()<N){
		s.push_back('0'+prefix(s.size()));
	}
	return s;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 69 ms 1432 KB Output is partially correct
2 Partially correct 67 ms 812 KB Output is partially correct
3 Partially correct 68 ms 1176 KB Output is partially correct
4 Partially correct 68 ms 1180 KB Output is partially correct
5 Partially correct 70 ms 1204 KB Output is partially correct
6 Partially correct 68 ms 1084 KB Output is partially correct
7 Partially correct 67 ms 564 KB Output is partially correct
8 Partially correct 71 ms 1128 KB Output is partially correct
9 Partially correct 71 ms 1148 KB Output is partially correct
10 Partially correct 68 ms 860 KB Output is partially correct
11 Partially correct 70 ms 1388 KB Output is partially correct
12 Partially correct 68 ms 1184 KB Output is partially correct
13 Partially correct 67 ms 1240 KB Output is partially correct
14 Partially correct 68 ms 1584 KB Output is partially correct
15 Partially correct 68 ms 1296 KB Output is partially correct
16 Partially correct 68 ms 1476 KB Output is partially correct
17 Partially correct 68 ms 996 KB Output is partially correct
18 Partially correct 69 ms 1548 KB Output is partially correct
19 Partially correct 69 ms 1308 KB Output is partially correct
20 Partially correct 69 ms 1272 KB Output is partially correct
21 Partially correct 68 ms 1344 KB Output is partially correct
22 Partially correct 69 ms 1364 KB Output is partially correct
23 Partially correct 70 ms 1512 KB Output is partially correct
24 Partially correct 68 ms 1328 KB Output is partially correct
25 Partially correct 70 ms 1188 KB Output is partially correct
26 Partially correct 68 ms 1232 KB Output is partially correct
27 Partially correct 68 ms 1376 KB Output is partially correct
28 Partially correct 68 ms 1492 KB Output is partially correct
29 Partially correct 68 ms 1388 KB Output is partially correct
30 Partially correct 67 ms 920 KB Output is partially correct
31 Partially correct 68 ms 1316 KB Output is partially correct
32 Partially correct 71 ms 1484 KB Output is partially correct
33 Partially correct 72 ms 1492 KB Output is partially correct
34 Partially correct 68 ms 948 KB Output is partially correct
35 Partially correct 70 ms 836 KB Output is partially correct
36 Partially correct 68 ms 812 KB Output is partially correct
37 Partially correct 67 ms 1128 KB Output is partially correct
38 Partially correct 69 ms 1220 KB Output is partially correct
39 Partially correct 68 ms 1084 KB Output is partially correct
40 Partially correct 68 ms 1056 KB Output is partially correct
41 Partially correct 68 ms 1340 KB Output is partially correct
42 Partially correct 69 ms 1424 KB Output is partially correct
43 Partially correct 69 ms 1196 KB Output is partially correct
44 Partially correct 68 ms 964 KB Output is partially correct
45 Partially correct 67 ms 976 KB Output is partially correct
46 Partially correct 72 ms 984 KB Output is partially correct
47 Partially correct 68 ms 1392 KB Output is partially correct
48 Partially correct 69 ms 1336 KB Output is partially correct
49 Partially correct 68 ms 1260 KB Output is partially correct
50 Partially correct 70 ms 1396 KB Output is partially correct
51 Partially correct 68 ms 1072 KB Output is partially correct
52 Partially correct 70 ms 1504 KB Output is partially correct
53 Partially correct 68 ms 1032 KB Output is partially correct
54 Partially correct 67 ms 1396 KB Output is partially correct
55 Partially correct 70 ms 1488 KB Output is partially correct
56 Partially correct 68 ms 1328 KB Output is partially correct
57 Partially correct 68 ms 1400 KB Output is partially correct
58 Partially correct 90 ms 1404 KB Output is partially correct
59 Partially correct 68 ms 1108 KB Output is partially correct
60 Partially correct 70 ms 1024 KB Output is partially correct
61 Partially correct 73 ms 1364 KB Output is partially correct
62 Partially correct 70 ms 1588 KB Output is partially correct
63 Partially correct 70 ms 1372 KB Output is partially correct