# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
946267 | 2024-03-14T13:12:38 Z | attky | Arranging Shoes (IOI19_shoes) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; int64_t count_swaps(int[] S) { long long int n = sizeof(S) / sizeof(int); return (n*(n-1))/2; }