답안 #965110

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
965110 2024-04-18T06:58:43 Z pcc Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
89 ms 1656 KB
#include "ancient2.h"
#include <bits/stdc++.h>

#include <string>
#include <vector>
using namespace std;

namespace {

int variable_example = 1;

}  // namespace
/*
  int m = 2;
  std::vector<int> a(m), b(m);
  a[0] = 0;
  a[1] = 1;
  b[0] = 0;
  b[1] = 1;
  variable_example = Query(m, a, b);
  std::string s(N, '0');
  s[0] = '1';
  return s;
*/

std::string Solve(int N) {
	string ans;
	vector<int> v[2];
	for(int i = 0;i<N;i++){
		v[0].clear();v[1].clear();
		for(int j = 1;j<=i;j++){
			v[0].push_back(j);v[1].push_back(j);
		}
		v[0].push_back(i+1);v[1].push_back(i+2);
		v[0].push_back(i+1);v[1].push_back(i+1);
		v[0].push_back(i+2);v[1].push_back(i+2);
		int re = Query(v[0].size(),v[0],v[1]);
		if(re == i+1)ans += '0';
		else ans += '1';
	}
	return ans;
}

Compilation message

ancient2.cpp:10:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
   10 | int variable_example = 1;
      |     ^~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Partially correct 77 ms 1232 KB Output is partially correct
2 Partially correct 77 ms 1252 KB Output is partially correct
3 Partially correct 82 ms 1004 KB Output is partially correct
4 Partially correct 85 ms 984 KB Output is partially correct
5 Partially correct 81 ms 1440 KB Output is partially correct
6 Partially correct 79 ms 1028 KB Output is partially correct
7 Partially correct 80 ms 696 KB Output is partially correct
8 Partially correct 80 ms 1268 KB Output is partially correct
9 Partially correct 79 ms 1120 KB Output is partially correct
10 Partially correct 77 ms 1068 KB Output is partially correct
11 Partially correct 81 ms 1256 KB Output is partially correct
12 Partially correct 76 ms 852 KB Output is partially correct
13 Partially correct 78 ms 1252 KB Output is partially correct
14 Partially correct 80 ms 1216 KB Output is partially correct
15 Partially correct 73 ms 1656 KB Output is partially correct
16 Partially correct 81 ms 1260 KB Output is partially correct
17 Partially correct 87 ms 1048 KB Output is partially correct
18 Partially correct 76 ms 1256 KB Output is partially correct
19 Partially correct 81 ms 1196 KB Output is partially correct
20 Partially correct 77 ms 1148 KB Output is partially correct
21 Partially correct 76 ms 1212 KB Output is partially correct
22 Partially correct 78 ms 1056 KB Output is partially correct
23 Partially correct 72 ms 1396 KB Output is partially correct
24 Partially correct 83 ms 1192 KB Output is partially correct
25 Partially correct 77 ms 1280 KB Output is partially correct
26 Partially correct 69 ms 1080 KB Output is partially correct
27 Partially correct 84 ms 940 KB Output is partially correct
28 Partially correct 77 ms 960 KB Output is partially correct
29 Partially correct 76 ms 1252 KB Output is partially correct
30 Partially correct 86 ms 1028 KB Output is partially correct
31 Partially correct 73 ms 1184 KB Output is partially correct
32 Partially correct 73 ms 928 KB Output is partially correct
33 Partially correct 75 ms 1068 KB Output is partially correct
34 Partially correct 73 ms 1260 KB Output is partially correct
35 Partially correct 85 ms 1240 KB Output is partially correct
36 Partially correct 81 ms 1000 KB Output is partially correct
37 Partially correct 78 ms 1308 KB Output is partially correct
38 Partially correct 79 ms 1324 KB Output is partially correct
39 Partially correct 80 ms 1332 KB Output is partially correct
40 Partially correct 87 ms 1088 KB Output is partially correct
41 Partially correct 89 ms 1244 KB Output is partially correct
42 Partially correct 73 ms 1224 KB Output is partially correct
43 Partially correct 80 ms 1136 KB Output is partially correct
44 Partially correct 69 ms 1052 KB Output is partially correct
45 Partially correct 71 ms 1188 KB Output is partially correct
46 Partially correct 79 ms 1380 KB Output is partially correct
47 Partially correct 73 ms 1180 KB Output is partially correct
48 Partially correct 72 ms 984 KB Output is partially correct
49 Partially correct 83 ms 1216 KB Output is partially correct
50 Partially correct 75 ms 1224 KB Output is partially correct
51 Partially correct 73 ms 1012 KB Output is partially correct
52 Partially correct 73 ms 1028 KB Output is partially correct
53 Partially correct 73 ms 1616 KB Output is partially correct
54 Partially correct 75 ms 1172 KB Output is partially correct
55 Partially correct 76 ms 1168 KB Output is partially correct
56 Partially correct 77 ms 1324 KB Output is partially correct
57 Partially correct 71 ms 1004 KB Output is partially correct
58 Partially correct 74 ms 1028 KB Output is partially correct
59 Partially correct 73 ms 1508 KB Output is partially correct
60 Partially correct 70 ms 1412 KB Output is partially correct
61 Partially correct 79 ms 1288 KB Output is partially correct
62 Partially correct 77 ms 1188 KB Output is partially correct
63 Partially correct 80 ms 1528 KB Output is partially correct