답안 #817021

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
817021 2023-08-09T08:35:16 Z rainboy Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
95 ms 808 KB
/* upsolved with help from GusterGoose27 */
#include "ancient2.h"
#include <vector>

using namespace std;

typedef vector<int> vi;

const int N = 1000;

string Solve(int n) {
	string cc(N, 0);
	for (int i = 0; i < N; i++) {
		int m = i + 3;
		vi aa(m), bb(m);
		for (int s = 0; s < i; s++)
			aa[s] = bb[s] = s + 1;
		aa[i] = i + 1, bb[i] = i + 2;
		aa[i + 1] = bb[i + 1] = i + 1;
		aa[i + 2] = bb[i + 2] = i + 2;
		cc[i] = Query(m, aa, bb) == i + 1 ? '0' : '1';
	}
	return cc;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 72 ms 416 KB Output is partially correct
2 Partially correct 75 ms 548 KB Output is partially correct
3 Partially correct 69 ms 424 KB Output is partially correct
4 Partially correct 95 ms 420 KB Output is partially correct
5 Partially correct 80 ms 416 KB Output is partially correct
6 Partially correct 79 ms 416 KB Output is partially correct
7 Partially correct 77 ms 408 KB Output is partially correct
8 Partially correct 70 ms 404 KB Output is partially correct
9 Partially correct 84 ms 408 KB Output is partially correct
10 Partially correct 70 ms 416 KB Output is partially correct
11 Partially correct 70 ms 420 KB Output is partially correct
12 Partially correct 81 ms 424 KB Output is partially correct
13 Partially correct 66 ms 424 KB Output is partially correct
14 Partially correct 70 ms 408 KB Output is partially correct
15 Partially correct 74 ms 420 KB Output is partially correct
16 Partially correct 70 ms 576 KB Output is partially correct
17 Partially correct 78 ms 416 KB Output is partially correct
18 Partially correct 71 ms 416 KB Output is partially correct
19 Partially correct 69 ms 412 KB Output is partially correct
20 Partially correct 75 ms 808 KB Output is partially correct
21 Partially correct 76 ms 420 KB Output is partially correct
22 Partially correct 71 ms 408 KB Output is partially correct
23 Partially correct 79 ms 412 KB Output is partially correct
24 Partially correct 74 ms 416 KB Output is partially correct
25 Partially correct 81 ms 408 KB Output is partially correct
26 Partially correct 70 ms 408 KB Output is partially correct
27 Partially correct 71 ms 648 KB Output is partially correct
28 Partially correct 70 ms 420 KB Output is partially correct
29 Partially correct 85 ms 412 KB Output is partially correct
30 Partially correct 69 ms 464 KB Output is partially correct
31 Partially correct 73 ms 604 KB Output is partially correct
32 Partially correct 67 ms 408 KB Output is partially correct
33 Partially correct 70 ms 416 KB Output is partially correct
34 Partially correct 71 ms 408 KB Output is partially correct
35 Partially correct 76 ms 560 KB Output is partially correct
36 Partially correct 74 ms 416 KB Output is partially correct
37 Partially correct 80 ms 416 KB Output is partially correct
38 Partially correct 87 ms 412 KB Output is partially correct
39 Partially correct 77 ms 416 KB Output is partially correct
40 Partially correct 85 ms 404 KB Output is partially correct
41 Partially correct 74 ms 412 KB Output is partially correct
42 Partially correct 74 ms 448 KB Output is partially correct
43 Partially correct 69 ms 416 KB Output is partially correct
44 Partially correct 85 ms 416 KB Output is partially correct
45 Partially correct 71 ms 428 KB Output is partially correct
46 Partially correct 70 ms 420 KB Output is partially correct
47 Partially correct 79 ms 412 KB Output is partially correct
48 Partially correct 70 ms 416 KB Output is partially correct
49 Partially correct 70 ms 416 KB Output is partially correct
50 Partially correct 70 ms 412 KB Output is partially correct
51 Partially correct 74 ms 416 KB Output is partially correct
52 Partially correct 73 ms 408 KB Output is partially correct
53 Partially correct 70 ms 412 KB Output is partially correct
54 Partially correct 73 ms 552 KB Output is partially correct
55 Partially correct 74 ms 416 KB Output is partially correct
56 Partially correct 71 ms 412 KB Output is partially correct
57 Partially correct 79 ms 504 KB Output is partially correct
58 Partially correct 72 ms 424 KB Output is partially correct
59 Partially correct 70 ms 416 KB Output is partially correct
60 Partially correct 70 ms 408 KB Output is partially correct
61 Partially correct 76 ms 488 KB Output is partially correct
62 Partially correct 68 ms 416 KB Output is partially correct
63 Partially correct 79 ms 412 KB Output is partially correct