제출 #888586

#제출 시각아이디문제언어결과실행 시간메모리
888586Lincito_31Arranging Shoes (IOI19_shoes)C++14
0 / 100
1 ms604 KiB
#include <bits/stdc++.h> #include "shoes.h" using namespace std; long long x=0; long long count_swaps(vector<int> s) { while(!s.empty()){ int i=0; while(s[i]>0){ i++; } x+=i; int abso=-s[i]; s.erase(s.begin()+i+1); i=0; while(s[i]!=abso){ i++; } x+=i; s.erase(s.begin()+i+1); } return x; }
#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...