Submission #531229

#TimeUsernameProblemLanguageResultExecution timeMemory
531229MedalistSlayerArranging Shoes (IOI19_shoes)C++14
25 / 100
29 ms3100 KiB
#include <bits/stdc++.h> using namespace std; int64_t count_swaps(vector<int> s) { if(s.size()==2) { if(s[1]<0) { return 1; } else { return 0; } } else { int64_t x=(int64_t)s.size()/2; return (x)*(x-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...