Submission #813401

# Submission time Handle Problem Language Result Execution time Memory
813401 2023-08-07T17:05:33 Z arnold518 Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
216 ms 544 KB
#include "ancient2.h"
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

namespace
{
	int N, M;
}


string Solve(int _N)
{
	N=_N;
	string ans;
	M=N+2;
	
	for(int i=0; i<N; i++)
	{
		vector<int> A(M), B(M);

		for(int j=0; j<i; j++) A[j]=j+1, B[j]=j+1;
		A[i]=i+1; B[i]=i+2;
		for(int j=i+1; j<M; j++) A[j]=j, B[j]=j;

		int t=Query(M, A, B);
		if(t==i+1) ans+="0";
		else ans+="1";
	}

	return ans;
}
# Verdict Execution time Memory Grader output
1 Partially correct 135 ms 208 KB Output is partially correct
2 Partially correct 131 ms 304 KB Output is partially correct
3 Partially correct 132 ms 304 KB Output is partially correct
4 Partially correct 204 ms 296 KB Output is partially correct
5 Partially correct 135 ms 300 KB Output is partially correct
6 Partially correct 206 ms 300 KB Output is partially correct
7 Partially correct 136 ms 480 KB Output is partially correct
8 Partially correct 142 ms 412 KB Output is partially correct
9 Partially correct 136 ms 312 KB Output is partially correct
10 Partially correct 137 ms 336 KB Output is partially correct
11 Partially correct 137 ms 300 KB Output is partially correct
12 Partially correct 155 ms 544 KB Output is partially correct
13 Partially correct 135 ms 316 KB Output is partially correct
14 Partially correct 154 ms 420 KB Output is partially correct
15 Partially correct 131 ms 208 KB Output is partially correct
16 Partially correct 131 ms 300 KB Output is partially correct
17 Partially correct 137 ms 316 KB Output is partially correct
18 Partially correct 134 ms 208 KB Output is partially correct
19 Partially correct 134 ms 372 KB Output is partially correct
20 Partially correct 134 ms 296 KB Output is partially correct
21 Partially correct 137 ms 208 KB Output is partially correct
22 Partially correct 216 ms 312 KB Output is partially correct
23 Partially correct 132 ms 296 KB Output is partially correct
24 Partially correct 141 ms 300 KB Output is partially correct
25 Partially correct 134 ms 208 KB Output is partially correct
26 Partially correct 137 ms 316 KB Output is partially correct
27 Partially correct 150 ms 320 KB Output is partially correct
28 Partially correct 143 ms 320 KB Output is partially correct
29 Partially correct 148 ms 316 KB Output is partially correct
30 Partially correct 133 ms 312 KB Output is partially correct
31 Partially correct 179 ms 300 KB Output is partially correct
32 Partially correct 134 ms 300 KB Output is partially correct
33 Partially correct 155 ms 296 KB Output is partially correct
34 Partially correct 204 ms 304 KB Output is partially correct
35 Partially correct 142 ms 420 KB Output is partially correct
36 Partially correct 135 ms 300 KB Output is partially correct
37 Partially correct 144 ms 416 KB Output is partially correct
38 Partially correct 156 ms 312 KB Output is partially correct
39 Partially correct 132 ms 316 KB Output is partially correct
40 Partially correct 132 ms 304 KB Output is partially correct
41 Partially correct 134 ms 300 KB Output is partially correct
42 Partially correct 137 ms 316 KB Output is partially correct
43 Partially correct 140 ms 296 KB Output is partially correct
44 Partially correct 137 ms 408 KB Output is partially correct
45 Partially correct 136 ms 300 KB Output is partially correct
46 Partially correct 139 ms 312 KB Output is partially correct
47 Partially correct 146 ms 316 KB Output is partially correct
48 Partially correct 131 ms 296 KB Output is partially correct
49 Partially correct 134 ms 424 KB Output is partially correct
50 Partially correct 131 ms 304 KB Output is partially correct
51 Partially correct 136 ms 304 KB Output is partially correct
52 Partially correct 135 ms 320 KB Output is partially correct
53 Partially correct 206 ms 316 KB Output is partially correct
54 Partially correct 152 ms 300 KB Output is partially correct
55 Partially correct 132 ms 316 KB Output is partially correct
56 Partially correct 136 ms 316 KB Output is partially correct
57 Partially correct 139 ms 304 KB Output is partially correct
58 Partially correct 137 ms 424 KB Output is partially correct
59 Partially correct 133 ms 300 KB Output is partially correct
60 Partially correct 147 ms 300 KB Output is partially correct
61 Partially correct 177 ms 324 KB Output is partially correct
62 Partially correct 140 ms 208 KB Output is partially correct
63 Partially correct 138 ms 420 KB Output is partially correct