# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1135259 | vibeduck | Arranging Shoes (IOI19_shoes) | C++20 | 0 ms | 0 KiB |
#include "shoes.h"
#define int long long
int count_swaps(std::vector<int> s) {
int n = (int)s.size()/2;
int x = (n - 1) * (n) / 2;
return x;
}