| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1360412 | ezzzay | Art Collections (BOI22_art) | C++20 | 491 ms | 504 KiB |
#include "art.h"
#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
void solve(int N) {
vector<int>v;
for(int i=1;i<=N;i++)v.pb(i);
vector<int>cst(N);
for(int i=0;i<N;i++){
cst[i]= publish(v);
v.pb(v[0]);
v.erase(v.begin());
}
cst.pb(cst[0]);
vector<int>ans(N);
for(int i=0;i<N;i++){
int e=cst[i];
int f=cst[i+1];
int p= (e+f-N+1)/2;
int x=e-p;
ans[x]=i+1;
}
answer(ans);
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
