답안 #1084550

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1084550 2024-09-06T11:29:35 Z PagodePaiva Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
89 ms 1240 KB
#include "ancient2.h"
#include<bits/stdc++.h>

using namespace std;

namespace {

int variable_example = 1;

}  // namespace

std::string Solve(int N) {
  // int m = 2;
  // std::vector<int> a(m), b(m);
  //variable_example = Query(m, a, b);
  string s;
  for(int i = 0;i < N;i++){
    int m = i+3;
    vector <int> a, b;
    for(int j = 0;j < m-3;j++){
      a.push_back(j+1);
      b.push_back(j+1);
    }
    a.push_back(i+1);
    b.push_back(i+2);
    a.push_back(i+1);
    a.push_back(i+2);
    b.push_back(i+1);
    b.push_back(i+2);
    int v = Query(m,a, b);
    if(v == i+1) s.push_back('0');
    else s.push_back('1');
  }
  return s;

}

Compilation message

ancient2.cpp:8:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    8 | int variable_example = 1;
      |     ^~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Partially correct 60 ms 984 KB Output is partially correct
2 Partially correct 65 ms 668 KB Output is partially correct
3 Partially correct 62 ms 600 KB Output is partially correct
4 Partially correct 58 ms 496 KB Output is partially correct
5 Partially correct 75 ms 980 KB Output is partially correct
6 Partially correct 56 ms 592 KB Output is partially correct
7 Partially correct 55 ms 496 KB Output is partially correct
8 Partially correct 68 ms 756 KB Output is partially correct
9 Partially correct 72 ms 496 KB Output is partially correct
10 Partially correct 59 ms 600 KB Output is partially correct
11 Partially correct 54 ms 500 KB Output is partially correct
12 Partially correct 60 ms 1160 KB Output is partially correct
13 Partially correct 75 ms 740 KB Output is partially correct
14 Partially correct 58 ms 700 KB Output is partially correct
15 Partially correct 55 ms 500 KB Output is partially correct
16 Partially correct 56 ms 500 KB Output is partially correct
17 Partially correct 60 ms 748 KB Output is partially correct
18 Partially correct 80 ms 500 KB Output is partially correct
19 Partially correct 59 ms 1240 KB Output is partially correct
20 Partially correct 54 ms 600 KB Output is partially correct
21 Partially correct 56 ms 676 KB Output is partially correct
22 Partially correct 55 ms 600 KB Output is partially correct
23 Partially correct 75 ms 960 KB Output is partially correct
24 Partially correct 58 ms 600 KB Output is partially correct
25 Partially correct 57 ms 548 KB Output is partially correct
26 Partially correct 55 ms 732 KB Output is partially correct
27 Partially correct 58 ms 748 KB Output is partially correct
28 Partially correct 77 ms 656 KB Output is partially correct
29 Partially correct 59 ms 516 KB Output is partially correct
30 Partially correct 67 ms 668 KB Output is partially correct
31 Partially correct 58 ms 496 KB Output is partially correct
32 Partially correct 62 ms 644 KB Output is partially correct
33 Partially correct 62 ms 724 KB Output is partially correct
34 Partially correct 55 ms 588 KB Output is partially correct
35 Partially correct 83 ms 500 KB Output is partially correct
36 Partially correct 54 ms 520 KB Output is partially correct
37 Partially correct 60 ms 1236 KB Output is partially correct
38 Partially correct 56 ms 500 KB Output is partially correct
39 Partially correct 72 ms 1180 KB Output is partially correct
40 Partially correct 65 ms 496 KB Output is partially correct
41 Partially correct 59 ms 512 KB Output is partially correct
42 Partially correct 64 ms 496 KB Output is partially correct
43 Partially correct 61 ms 744 KB Output is partially correct
44 Partially correct 60 ms 852 KB Output is partially correct
45 Partially correct 55 ms 516 KB Output is partially correct
46 Partially correct 78 ms 512 KB Output is partially correct
47 Partially correct 58 ms 508 KB Output is partially correct
48 Partially correct 55 ms 344 KB Output is partially correct
49 Partially correct 69 ms 644 KB Output is partially correct
50 Partially correct 55 ms 496 KB Output is partially correct
51 Partially correct 89 ms 1072 KB Output is partially correct
52 Partially correct 59 ms 504 KB Output is partially correct
53 Partially correct 74 ms 600 KB Output is partially correct
54 Partially correct 78 ms 496 KB Output is partially correct
55 Partially correct 55 ms 700 KB Output is partially correct
56 Partially correct 54 ms 668 KB Output is partially correct
57 Partially correct 56 ms 492 KB Output is partially correct
58 Partially correct 53 ms 496 KB Output is partially correct
59 Partially correct 56 ms 492 KB Output is partially correct
60 Partially correct 57 ms 748 KB Output is partially correct
61 Partially correct 76 ms 592 KB Output is partially correct
62 Partially correct 60 ms 600 KB Output is partially correct
63 Partially correct 77 ms 740 KB Output is partially correct