# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
946265 | 2024-03-14T13:12:13 Z | attky | Arranging Shoes (IOI19_shoes) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; int64 count_swaps(int[] S) { long long int n = sizeof(S) / sizeof(int); return (n*(n-1))/2; }