| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1291463 | LolkasMeep | Permutation Game (APIO25_permgame) | C++20 | 1 ms | 504 KiB |
#include "permgame.h"
#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
int Alice(int m, int e, vector<int> u, vector<int> v, int n, vector<int> p) {
ll score = 0;
for(ll i = 0; i < n; i++){
if(i == p[i]) score++;
}
return score;
for(ll i = 0; i < n; i++){
if(i == p[i]) continue;
ll index = 0;
for(ll j = 0; j < n; j++){
if(i == p[j]){
index = j;
break;
}
}
// cout << "swaping: " << i << index << '\n';
Bob({i, index});
swap(p[i], p[index]);
}
return n;
vector<int> t(m);
for (int i = 0; i < m; i++){
t[i] = i;
}
int j = Bob(t);
swap(p[t[u[j]]], p[t[v[j]]]);
return 42;
}
컴파일 시 표준 에러 (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... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
