답안 #704915

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
704915 2023-03-03T06:43:23 Z cig32 The Collection Game (BOI21_swaps) C++17
42 / 100
12 ms 400 KB
#include "swaps.h"
#include "bits/stdc++.h"
using namespace std;

void solve(int N, int V) {
  // TODO implement this function
  for(int i=1; i<=9; i++) {
    for(int j=(1 << ((int) log2(N))); j>=1; j>>=1) {
      int count = 0;
      for(int k=1; k<=N; k+=(j<<1)) {
        for(int l=k; l<k+j; l++) {
          if((k<<1) + (j<<1) - 1 - l <= N) {
            count++;
            schedule(l, k + k+(j<<1)-1 - l);
          }
        }
      }
      if(!count) continue;
      vector<int> uni = visit();
    }
  }
  vector<int> identity;
  for(int i=1; i<=N; i++) identity.push_back(i);
  answer(identity);
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 208 KB Not correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 208 KB Not correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 2 ms 208 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 2 ms 208 KB Correct
3 Incorrect 1 ms 208 KB Not correct
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 2 ms 208 KB Correct
3 Correct 5 ms 276 KB Correct
4 Correct 10 ms 300 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 2 ms 208 KB Correct
3 Correct 5 ms 276 KB Correct
4 Correct 10 ms 300 KB Correct
5 Incorrect 1 ms 208 KB Not correct
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 6 ms 208 KB Correct
3 Correct 6 ms 300 KB Correct
4 Correct 7 ms 304 KB Correct
5 Correct 11 ms 284 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 6 ms 208 KB Correct
3 Correct 6 ms 300 KB Correct
4 Correct 7 ms 304 KB Correct
5 Correct 11 ms 284 KB Correct
6 Incorrect 1 ms 208 KB Not correct
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 2 ms 292 KB Correct
3 Correct 5 ms 280 KB Correct
4 Correct 9 ms 304 KB Correct
5 Correct 7 ms 304 KB Correct
6 Correct 10 ms 400 KB Correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 2 ms 292 KB Correct
3 Correct 5 ms 280 KB Correct
4 Correct 9 ms 304 KB Correct
5 Correct 7 ms 304 KB Correct
6 Correct 10 ms 400 KB Correct
7 Incorrect 1 ms 208 KB Not correct
8 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 2 ms 208 KB Correct
3 Correct 3 ms 296 KB Correct
4 Correct 12 ms 304 KB Correct
5 Correct 7 ms 280 KB Correct
6 Correct 10 ms 280 KB Correct
7 Runtime error 6 ms 280 KB Execution killed with signal 13
8 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 208 KB Correct
2 Correct 2 ms 208 KB Correct
3 Correct 3 ms 296 KB Correct
4 Correct 12 ms 304 KB Correct
5 Correct 7 ms 280 KB Correct
6 Correct 10 ms 280 KB Correct
7 Runtime error 6 ms 280 KB Execution killed with signal 13
8 Halted 0 ms 0 KB -