| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1290721 | kahoul | Arranging Shoes (IOI19_shoes) | C++20 | 0 ms | 0 KiB |
#include "shoes.h"
using namespace std;
long long count_swaps(vector<int> s) {
deque<int> q;
long long ans = 0 ;
for (int i = 0; i < s.size() / 2; i++) {
ans += s.size() / 2 - i - 1;
}
return ans;
}
