Submission #900560

# Submission time Handle Problem Language Result Execution time Memory
900560 2024-01-08T14:23:39 Z qin Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
79 ms 1752 KB
#include <bits/stdc++.h>
#include "ancient2.h"
#define fi first
#define se second
#define ssize(x) int(x.size())
#define pn printf("\n");
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
int inf = 2e09; ll infll = 2e18; int mod = 119<<23|1;
string Solve(int n){
		string s = "";
		for(int i = 0; i < n; ++i){
				vector<int> a(i+3), b(i+3);
				for(int j = 0; j < i; ++j) a[j] = j+1, b[j] = j+1;
				a[i] = i+1, b[i] = i+2;
				a[i+1] = i+1, b[i+1] = i+1;
				a[i+2] = i+2, b[i+2] = i+2;
				int tmp = Query(ssize(a), a, b);
				s += char(tmp-(i+1)+'0');
		}
		return s;
}
#ifdef DEBUG
void answer(){

}
signed main(){
		int T = 1;
		for(++T; --T; ) answer();
		return 0;
}
#endif

# Verdict Execution time Memory Grader output
1 Partially correct 71 ms 1372 KB Output is partially correct
2 Partially correct 69 ms 1064 KB Output is partially correct
3 Partially correct 73 ms 1332 KB Output is partially correct
4 Partially correct 73 ms 1040 KB Output is partially correct
5 Partially correct 71 ms 1652 KB Output is partially correct
6 Partially correct 70 ms 1420 KB Output is partially correct
7 Partially correct 72 ms 1200 KB Output is partially correct
8 Partially correct 70 ms 1132 KB Output is partially correct
9 Partially correct 73 ms 1064 KB Output is partially correct
10 Partially correct 74 ms 1188 KB Output is partially correct
11 Partially correct 70 ms 772 KB Output is partially correct
12 Partially correct 71 ms 1064 KB Output is partially correct
13 Partially correct 71 ms 992 KB Output is partially correct
14 Partially correct 70 ms 1204 KB Output is partially correct
15 Partially correct 71 ms 1232 KB Output is partially correct
16 Partially correct 70 ms 972 KB Output is partially correct
17 Partially correct 72 ms 1232 KB Output is partially correct
18 Partially correct 71 ms 1280 KB Output is partially correct
19 Partially correct 70 ms 1092 KB Output is partially correct
20 Partially correct 75 ms 1388 KB Output is partially correct
21 Partially correct 71 ms 1104 KB Output is partially correct
22 Partially correct 70 ms 1000 KB Output is partially correct
23 Partially correct 72 ms 1580 KB Output is partially correct
24 Partially correct 75 ms 1068 KB Output is partially correct
25 Partially correct 69 ms 916 KB Output is partially correct
26 Partially correct 79 ms 776 KB Output is partially correct
27 Partially correct 72 ms 1612 KB Output is partially correct
28 Partially correct 70 ms 960 KB Output is partially correct
29 Partially correct 69 ms 1360 KB Output is partially correct
30 Partially correct 69 ms 1244 KB Output is partially correct
31 Partially correct 73 ms 1388 KB Output is partially correct
32 Partially correct 68 ms 1076 KB Output is partially correct
33 Partially correct 70 ms 1232 KB Output is partially correct
34 Partially correct 75 ms 1016 KB Output is partially correct
35 Partially correct 69 ms 1040 KB Output is partially correct
36 Partially correct 74 ms 1016 KB Output is partially correct
37 Partially correct 70 ms 1228 KB Output is partially correct
38 Partially correct 70 ms 1324 KB Output is partially correct
39 Partially correct 69 ms 1016 KB Output is partially correct
40 Partially correct 71 ms 1192 KB Output is partially correct
41 Partially correct 72 ms 1084 KB Output is partially correct
42 Partially correct 71 ms 1152 KB Output is partially correct
43 Partially correct 70 ms 752 KB Output is partially correct
44 Partially correct 72 ms 1512 KB Output is partially correct
45 Partially correct 71 ms 1432 KB Output is partially correct
46 Partially correct 71 ms 1116 KB Output is partially correct
47 Partially correct 75 ms 1752 KB Output is partially correct
48 Partially correct 74 ms 1152 KB Output is partially correct
49 Partially correct 74 ms 928 KB Output is partially correct
50 Partially correct 72 ms 1404 KB Output is partially correct
51 Partially correct 70 ms 644 KB Output is partially correct
52 Partially correct 75 ms 1532 KB Output is partially correct
53 Partially correct 70 ms 824 KB Output is partially correct
54 Partially correct 70 ms 1252 KB Output is partially correct
55 Partially correct 69 ms 1212 KB Output is partially correct
56 Partially correct 69 ms 1304 KB Output is partially correct
57 Partially correct 73 ms 1072 KB Output is partially correct
58 Partially correct 70 ms 600 KB Output is partially correct
59 Partially correct 70 ms 1352 KB Output is partially correct
60 Partially correct 71 ms 1432 KB Output is partially correct
61 Partially correct 73 ms 1252 KB Output is partially correct
62 Partially correct 68 ms 1240 KB Output is partially correct
63 Partially correct 73 ms 956 KB Output is partially correct