Submission #144694

#TimeUsernameProblemLanguageResultExecution timeMemory
144694AASGArranging Shoes (IOI19_shoes)C++14
0 / 100
2 ms376 KiB
#include "shoes.h" long long count_swaps(std::vector<int> s) { if(s[0]<1 && s.size()==1)return 0; else if(s[0]>1 && s.size()==1) return 1; int a; a=s.size(); return (a-1)*(a-2)/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...