답안 #821382

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
821382 2023-08-11T09:42:13 Z khshg Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
186 ms 508 KB
#include "ancient2.h"
#include<bits/stdc++.h>
using namespace std;

string Solve(int N) {
	string ans(N, '0');
	for(int i = 0; i < N; ++i) {
		vector<int> a(1002), b = a;
		for(int j = 0; j < i; ++j) a[j] = b[j] = j + 1;
		a[i] = i + 1;
		b[i] = i + 2;
		a[i + 1] = b[i + 1] = i + 1;
		a[i + 2] = b[i + 2] = i + 2;
		int x = Query(1002, a, b);
		ans[i] = '0' + (x == i + 2);
	}
	return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 143 ms 316 KB Output is partially correct
2 Partially correct 169 ms 312 KB Output is partially correct
3 Partially correct 137 ms 312 KB Output is partially correct
4 Partially correct 155 ms 292 KB Output is partially correct
5 Partially correct 186 ms 316 KB Output is partially correct
6 Partially correct 153 ms 316 KB Output is partially correct
7 Partially correct 145 ms 416 KB Output is partially correct
8 Partially correct 141 ms 312 KB Output is partially correct
9 Partially correct 141 ms 396 KB Output is partially correct
10 Partially correct 139 ms 292 KB Output is partially correct
11 Partially correct 139 ms 312 KB Output is partially correct
12 Partially correct 133 ms 320 KB Output is partially correct
13 Partially correct 139 ms 308 KB Output is partially correct
14 Partially correct 165 ms 312 KB Output is partially correct
15 Partially correct 136 ms 312 KB Output is partially correct
16 Partially correct 137 ms 360 KB Output is partially correct
17 Partially correct 139 ms 312 KB Output is partially correct
18 Partially correct 135 ms 316 KB Output is partially correct
19 Partially correct 138 ms 392 KB Output is partially correct
20 Partially correct 144 ms 316 KB Output is partially correct
21 Partially correct 137 ms 312 KB Output is partially correct
22 Partially correct 140 ms 316 KB Output is partially correct
23 Partially correct 146 ms 424 KB Output is partially correct
24 Partially correct 152 ms 324 KB Output is partially correct
25 Partially correct 162 ms 292 KB Output is partially correct
26 Partially correct 147 ms 380 KB Output is partially correct
27 Partially correct 133 ms 420 KB Output is partially correct
28 Partially correct 144 ms 500 KB Output is partially correct
29 Partially correct 139 ms 316 KB Output is partially correct
30 Partially correct 149 ms 324 KB Output is partially correct
31 Partially correct 173 ms 312 KB Output is partially correct
32 Partially correct 141 ms 336 KB Output is partially correct
33 Partially correct 152 ms 508 KB Output is partially correct
34 Partially correct 133 ms 316 KB Output is partially correct
35 Partially correct 137 ms 316 KB Output is partially correct
36 Partially correct 133 ms 396 KB Output is partially correct
37 Partially correct 137 ms 292 KB Output is partially correct
38 Partially correct 142 ms 392 KB Output is partially correct
39 Partially correct 133 ms 292 KB Output is partially correct
40 Partially correct 140 ms 400 KB Output is partially correct
41 Partially correct 164 ms 312 KB Output is partially correct
42 Partially correct 143 ms 312 KB Output is partially correct
43 Partially correct 140 ms 472 KB Output is partially correct
44 Partially correct 156 ms 320 KB Output is partially correct
45 Partially correct 143 ms 304 KB Output is partially correct
46 Partially correct 132 ms 316 KB Output is partially correct
47 Partially correct 142 ms 316 KB Output is partially correct
48 Partially correct 136 ms 316 KB Output is partially correct
49 Partially correct 139 ms 316 KB Output is partially correct
50 Partially correct 142 ms 424 KB Output is partially correct
51 Partially correct 145 ms 316 KB Output is partially correct
52 Partially correct 160 ms 380 KB Output is partially correct
53 Partially correct 152 ms 312 KB Output is partially correct
54 Partially correct 149 ms 320 KB Output is partially correct
55 Partially correct 144 ms 316 KB Output is partially correct
56 Partially correct 166 ms 296 KB Output is partially correct
57 Partially correct 157 ms 312 KB Output is partially correct
58 Partially correct 133 ms 320 KB Output is partially correct
59 Partially correct 179 ms 308 KB Output is partially correct
60 Partially correct 138 ms 332 KB Output is partially correct
61 Partially correct 151 ms 316 KB Output is partially correct
62 Partially correct 174 ms 296 KB Output is partially correct
63 Partially correct 155 ms 292 KB Output is partially correct