# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1207756 | jasonic | The Collection Game (BOI21_swaps) | C++20 | 0 ms | 0 KiB |
// #include "swaps.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define fastIO cin.tie(0); ios::sync_with_stdio(false)
#define cerr if(1) cout
vector<int> a;
void schedule(int i, int j) {
cerr << i << ' ' << j << '\n';
}
void visit() {cerr << "called visit\n";};
void interact(int i, int j) {
schedule(i+1, j+1);
}
void solve(int n, int v) {
a = vector<int>(n);
for(int i = 0; i < n; i++) a[i] = i+1;
for(int i = 0; i < n; i++) {
for(int j = n-1-(i%2); j > 0; j -= 2) {
interact(j-1, j);
}
visit();
}
// answer(a);
}
int main() {
solve(6, 10000);
return 0;
}