| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 732005 | TB_ | Art Collections (BOI22_art) | C++17 | 1 ms | 208 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "art.h"
using namespace std;
// #pragma GCC optimize("Ofast,inline")
// #pragma GCC optimize("unroll-loops")
#define ll long long
#define INF (ll)1e9+7
#define fo(i,n) for(ll i = 0;i<n;i++)
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define deb(x) cout << #x << " = " << x << endl;
#define pb push_back
#define F first
#define S second
#define LSOne(x) ((x) & (-x))
typedef vector<int> vi;
typedef vector<ll> vl;
// int publish(vi v){
// fo(i, v.size())cout << v[i] << " ";
// cout << endl;
// int r;
// cin >> r;
// return r;
// }
void solve(int n){
vi v(n);
fo(i, n){
v[i] = i+1;
}
vi res;
fo(i, n){
res.pb(publish(v));
reverse(all(v));
int val = v[n-1];
v.pop_back();
reverse(all(v));
v.pb(val);
}
vector<pair<ll, ll>> ans;
int last = res[n-1];
fo(i, n){
// deb(last-res[i]);
ans.pb({last-res[i], i+1});
last = res[i];
}
sort(all(ans));
vi toSend;
fo(i, n-1){
toSend.pb(ans[i+1].S);
// deb(ans[i+1].S);
}
// deb(ans[0].S);
toSend.pb(ans[0].S);
answer(toSend);
}컴파일 시 표준 에러 (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... | ||||
