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