제출 #888587

#제출 시각아이디문제언어결과실행 시간메모리
888587Lincito_31Arranging Shoes (IOI19_shoes)C++14
10 / 100
1093 ms2140 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); i=0; while(s[i]!=abso){ i++; } x+=i; s.erase(s.begin()+i); } 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...