# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
598063 | jhnah917 | Art Collections (BOI22_art) | C++17 | 1547 ms | 656 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#ifndef LOCAL
#include "art.h"
#endif
#include <bits/stdc++.h>
using namespace std;
void solve(int n){
vector<int> cost(n+1);
for(int i=1; i<=n; i++){
vector<int> now;
for(int j=1; j<=n; j++) if(i != j) now.push_back(j);
now.insert(now.begin(), i);
int t1 = publish(now);
now.erase(now.begin());
now.push_back(i);
int t2 = publish(now);
now.pop_back();
cost[i] = t1 - t2;
}
vector<int> res(n);
iota(res.begin(), res.end(), 1);
sort(res.begin(), res.end(), [&](int a, int b){ return cost[a] < cost[b]; });
answer(res);
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |