Submission #520702

#TimeUsernameProblemLanguageResultExecution timeMemory
520702peti1234Arranging Shoes (IOI19_shoes)C++17
15 / 100
28 ms3228 KiB
#include <bits/stdc++.h> using namespace std; long long n, k; long long count_swaps(vector<int> s) { n=s.size(), k=n/2; // 1 if (n==1) { return (s[0]<0 ? 0 : 1); } // 2 return k*(k-1)/2; }
#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...