답안 #821914

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
821914 2023-08-11T21:26:12 Z beaconmc Ancient Machine 2 (JOI23_ancient2) C++17
10 / 100
211 ms 656 KB
#include "ancient2.h"


#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>

typedef long long ll;
using namespace std;
//using namespace __gnu_pbds;

#define FOR(i, x, y) for(ll i=x; i<y; i++)
#define FORNEG(i, x, y) for(ll i=x; i>y; i--)
//#define ordered_set tree<ll, null_type,less_equal<ll>, rb_tree_tag,tree_order_statistics_node_update>
#define fast() ios_base::sync_with_stdio(false);cin.tie(NULL)


std::string Solve(int N) {
  vector<int> a(1002), b(1002);
  a[1000] = 1000;
  b[1000] = 1000;
  a[1001] = 1001;
  b[1001] = 1001;

  string sus = "";

  FOR(i,0,1000){
    FOR(j,0,1000){
      if (j==i) a[j] = 1000, b[j] = 1001;
      else a[j] =j+1, b[j] = j+1;
    }
    ll ans = Query(1002, a, b);
    if (ans==1000) sus = sus + "0";
    else sus = sus + "1";
  }
  return sus;



}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 135 ms 368 KB Output is partially correct
2 Partially correct 134 ms 316 KB Output is partially correct
3 Partially correct 145 ms 580 KB Output is partially correct
4 Partially correct 133 ms 372 KB Output is partially correct
5 Partially correct 137 ms 488 KB Output is partially correct
6 Partially correct 139 ms 304 KB Output is partially correct
7 Partially correct 137 ms 300 KB Output is partially correct
8 Partially correct 140 ms 368 KB Output is partially correct
9 Partially correct 151 ms 460 KB Output is partially correct
10 Partially correct 138 ms 388 KB Output is partially correct
11 Partially correct 211 ms 312 KB Output is partially correct
12 Partially correct 138 ms 500 KB Output is partially correct
13 Partially correct 139 ms 368 KB Output is partially correct
14 Partially correct 141 ms 424 KB Output is partially correct
15 Partially correct 133 ms 348 KB Output is partially correct
16 Partially correct 143 ms 364 KB Output is partially correct
17 Partially correct 147 ms 508 KB Output is partially correct
18 Partially correct 141 ms 368 KB Output is partially correct
19 Partially correct 149 ms 428 KB Output is partially correct
20 Partially correct 145 ms 364 KB Output is partially correct
21 Partially correct 138 ms 360 KB Output is partially correct
22 Partially correct 134 ms 368 KB Output is partially correct
23 Partially correct 134 ms 312 KB Output is partially correct
24 Partially correct 137 ms 596 KB Output is partially correct
25 Partially correct 146 ms 300 KB Output is partially correct
26 Partially correct 151 ms 308 KB Output is partially correct
27 Partially correct 138 ms 344 KB Output is partially correct
28 Partially correct 171 ms 320 KB Output is partially correct
29 Partially correct 141 ms 444 KB Output is partially correct
30 Partially correct 136 ms 300 KB Output is partially correct
31 Partially correct 140 ms 308 KB Output is partially correct
32 Partially correct 140 ms 364 KB Output is partially correct
33 Partially correct 143 ms 316 KB Output is partially correct
34 Partially correct 173 ms 444 KB Output is partially correct
35 Partially correct 135 ms 356 KB Output is partially correct
36 Partially correct 169 ms 552 KB Output is partially correct
37 Partially correct 135 ms 320 KB Output is partially correct
38 Partially correct 135 ms 656 KB Output is partially correct
39 Partially correct 165 ms 344 KB Output is partially correct
40 Partially correct 140 ms 492 KB Output is partially correct
41 Partially correct 142 ms 312 KB Output is partially correct
42 Partially correct 185 ms 472 KB Output is partially correct
43 Partially correct 149 ms 336 KB Output is partially correct
44 Partially correct 137 ms 316 KB Output is partially correct
45 Partially correct 138 ms 328 KB Output is partially correct
46 Partially correct 133 ms 320 KB Output is partially correct
47 Partially correct 146 ms 484 KB Output is partially correct
48 Partially correct 136 ms 320 KB Output is partially correct
49 Partially correct 169 ms 416 KB Output is partially correct
50 Partially correct 154 ms 352 KB Output is partially correct
51 Partially correct 188 ms 604 KB Output is partially correct
52 Partially correct 137 ms 312 KB Output is partially correct
53 Partially correct 135 ms 308 KB Output is partially correct
54 Partially correct 147 ms 340 KB Output is partially correct
55 Partially correct 144 ms 320 KB Output is partially correct
56 Partially correct 148 ms 464 KB Output is partially correct
57 Partially correct 135 ms 368 KB Output is partially correct
58 Partially correct 138 ms 544 KB Output is partially correct
59 Partially correct 135 ms 324 KB Output is partially correct
60 Partially correct 157 ms 364 KB Output is partially correct
61 Partially correct 159 ms 296 KB Output is partially correct
62 Partially correct 147 ms 368 KB Output is partially correct
63 Partially correct 137 ms 468 KB Output is partially correct