답안 #963638

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
963638 2024-04-15T12:13:49 Z Trisanu_Das Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
151 ms 1864 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 139 ms 1384 KB Output is partially correct
2 Partially correct 142 ms 1548 KB Output is partially correct
3 Partially correct 138 ms 1244 KB Output is partially correct
4 Partially correct 143 ms 1560 KB Output is partially correct
5 Partially correct 147 ms 1364 KB Output is partially correct
6 Partially correct 135 ms 1128 KB Output is partially correct
7 Partially correct 142 ms 1348 KB Output is partially correct
8 Partially correct 138 ms 1552 KB Output is partially correct
9 Partially correct 149 ms 1212 KB Output is partially correct
10 Partially correct 139 ms 1300 KB Output is partially correct
11 Partially correct 144 ms 1292 KB Output is partially correct
12 Partially correct 140 ms 1340 KB Output is partially correct
13 Partially correct 139 ms 1464 KB Output is partially correct
14 Partially correct 136 ms 960 KB Output is partially correct
15 Partially correct 144 ms 1236 KB Output is partially correct
16 Partially correct 133 ms 1120 KB Output is partially correct
17 Partially correct 141 ms 1864 KB Output is partially correct
18 Partially correct 140 ms 1228 KB Output is partially correct
19 Partially correct 140 ms 1220 KB Output is partially correct
20 Partially correct 149 ms 1252 KB Output is partially correct
21 Partially correct 144 ms 1232 KB Output is partially correct
22 Partially correct 143 ms 1084 KB Output is partially correct
23 Partially correct 143 ms 1284 KB Output is partially correct
24 Partially correct 131 ms 1156 KB Output is partially correct
25 Partially correct 143 ms 1468 KB Output is partially correct
26 Partially correct 138 ms 1212 KB Output is partially correct
27 Partially correct 151 ms 1428 KB Output is partially correct
28 Partially correct 136 ms 1556 KB Output is partially correct
29 Partially correct 146 ms 1416 KB Output is partially correct
30 Partially correct 137 ms 1352 KB Output is partially correct
31 Partially correct 139 ms 1020 KB Output is partially correct
32 Partially correct 135 ms 1724 KB Output is partially correct
33 Partially correct 145 ms 1132 KB Output is partially correct
34 Partially correct 137 ms 1708 KB Output is partially correct
35 Partially correct 140 ms 1584 KB Output is partially correct
36 Partially correct 140 ms 1332 KB Output is partially correct
37 Partially correct 132 ms 1252 KB Output is partially correct
38 Partially correct 145 ms 1392 KB Output is partially correct
39 Partially correct 141 ms 1144 KB Output is partially correct
40 Partially correct 133 ms 1480 KB Output is partially correct
41 Partially correct 140 ms 1416 KB Output is partially correct
42 Partially correct 140 ms 1088 KB Output is partially correct
43 Partially correct 144 ms 1448 KB Output is partially correct
44 Partially correct 143 ms 1296 KB Output is partially correct
45 Partially correct 140 ms 1064 KB Output is partially correct
46 Partially correct 141 ms 1232 KB Output is partially correct
47 Partially correct 143 ms 1436 KB Output is partially correct
48 Partially correct 143 ms 1360 KB Output is partially correct
49 Partially correct 135 ms 940 KB Output is partially correct
50 Partially correct 139 ms 1492 KB Output is partially correct
51 Partially correct 141 ms 972 KB Output is partially correct
52 Partially correct 140 ms 1704 KB Output is partially correct
53 Partially correct 135 ms 1244 KB Output is partially correct
54 Partially correct 137 ms 1084 KB Output is partially correct
55 Partially correct 135 ms 1188 KB Output is partially correct
56 Partially correct 147 ms 1248 KB Output is partially correct
57 Partially correct 144 ms 1236 KB Output is partially correct
58 Partially correct 136 ms 1184 KB Output is partially correct
59 Partially correct 144 ms 1200 KB Output is partially correct
60 Partially correct 144 ms 1172 KB Output is partially correct
61 Partially correct 134 ms 1100 KB Output is partially correct
62 Partially correct 139 ms 1248 KB Output is partially correct
63 Partially correct 146 ms 1648 KB Output is partially correct