Submission #1364112

#TimeUsernameProblemLanguageResultExecution timeMemory
1364112yavor_ptvArranging Shoes (IOI19_shoes)C++20
0 / 100
9 ms2628 KiB
#include <bits/stdc++.h>
#include "shoes.h"
//#include "grader.cpp"

using namespace std;

vector <int> v;

long long count_swaps(vector<int> s)
{
    int n = s.size();
    v = s;
    n /= 2;
    n--;
    return n * (n + 1) / 2;
}

/*
2
2 1 -1 -2

4

3
-2 2 2 -2 -2 2
1


*/
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...
#Result Execution timeMemoryGrader output
Fetching results...