Submission #1150884

#TimeUsernameProblemLanguageResultExecution timeMemory
1150884gygArranging Shoes (IOI19_shoes)C++20
15 / 100
12 ms1864 KiB
#include "shoes.h"
#include <bits/stdc++.h>
using namespace std;
#define sig signed
#define int long long
#define arr array 
#define vec vector 
const int N = 2e5 + 5;

int n;
arr<int, 2 * N> a;

// SIZE OF A IS 2 * N
int count_swaps(vec<sig> _a) {
	n = _a.size() / 2;

	int ans = n * (n - 1) / 2;
	return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...