# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1177725 | alwaus424 | Arranging Shoes (IOI19_shoes) | C++17 | 0 ms | 0 KiB |
#include <vector>
#include <algorithm>
using namespace std;
int64_t count_swaps(const vector<int>& S) {
int n = S.size();
int64_t swaps = 0;
if(S[1] < 0) swaps = 1;
return swaps;
}