# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
922608 | maxFedorchuk | Cat (info1cup19_cat) | C++17 | 305 ms | 31568 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
using namespace std;
const long long MX=2e5+10;
int a[MX];
int p[MX];
pair < int , int > vp1[MX];
pair < int , int > vp2[MX];
int n;
void swp(int i,int j) {
swap(a[i], a[j]);
swap(p[a[i]], p[a[j]]);
swap(a[n - i + 1], a[n - j + 1]);
swap(p[a[n - i + 1]], p[a[n - j + 1]]);
}
void fun() {
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> a[i];
p[a[i]] = i;
}
for (int i = 1; i <= n / 2; i++) {
# | 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... |