제출 #1235836

#제출 시각아이디문제언어결과실행 시간메모리
1235836kl0989e정렬하기 (IOI15_sorting)C++20
0 / 100
0 ms328 KiB
#include "sorting.h" #include <bits/stdc++.h> using namespace std; #define ll long long #define pi pair<int, int> #define pl pair<ll, ll> #define vi vector<int> #define vl vector<ll> #define fi first #define se second #define pb push_back #define all(x) (x).begin(),(x).end() int findSwapPairs(int n, int s[], int m, int x[], int y[], int p[], int q[]) { vi loc(n); for (int i=0; i<n; i++) { loc[s[i]]=i; } for (int i=0; i<n-1; i++) { p[i]=loc[i]; q[i]=i; swap(loc[s[i]],loc[i]); swap(s[i],s[loc[s[i]]]); } return n-1; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...