Submission #296593

#TimeUsernameProblemLanguageResultExecution timeMemory
296593zoooma13Arranging Shoes (IOI19_shoes)C++14
50 / 100
1096 ms3192 KiB
#include "bits/stdc++.h" #include "shoes.h" using namespace std; long long count_swaps(vector<int> s) { long long ans = 0; while(!s.empty()){ int x = s.front(); int i = find(s.begin() ,s.end() ,-x)-s.begin(); ans += i-(x < 0); s.erase(s.begin()+i); s.erase(s.begin()); } 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...